lang/string.js
/**
		 * If a string exceeds a desired length, it is truncated and a poor man's
		 * ellipsis (i.e. three periods) is appended. Otherwise, the original
		 * string is returned.
		 *
		 * @public
		 * @static
		 * @param {String} s
		 * @param {Number} length
		 * @returns {String}
		 */
If a string exceeds a desired length, it is truncated and a poor man's
ellipsis  is appended. Otherwise, the original
string is returned.


If a string exceeds a desired length it is truncated and a poor man ' s ellipsis is appended . Otherwise the original string is returned .
truncate(s, length) {
			if (is.string(s) && s.length > length) {
				return s.substring(0, length) + ' ...';
			} else {
				return s;
			}
		}
truncate ( s , length ) { if ( is . string ( s ) && s . length > length ) { return s . substring ( 0 , length ) + ' ...' ; } else { return s ; } }
If a string exceeds a desired length, it is truncated and a poor man's
 ellipsis (i.e.
If a string exceeds a desired length it is truncated and a poor man ' s ellipsis ( i . e .