Sha256: db8e7ad0ecd2b8428edca726c8bf12328f8923c6ce3249ca199e86c1dc70edbe
Contents?: true
Size: 501 Bytes
Versions: 167
Compression:
Stored size: 501 Bytes
Contents
var isSpace = require('./isSpace'); /** * Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace * character of `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the index of the first non-whitespace character. */ function trimmedLeftIndex(string) { var index = -1, length = string.length; while (++index < length && isSpace(string.charCodeAt(index))) {} return index; } module.exports = trimmedLeftIndex;
Version data entries
167 entries across 87 versions & 9 rubygems