Sha256: edd88c7e95d5a3d2aaaa1656fc7e231583108ea358685eb113239d95a4e47433
Contents?: true
Size: 515 Bytes
Versions: 101
Compression:
Stored size: 515 Bytes
Contents
/** Used to match a single whitespace character. */ var reWhitespace = /\s/; /** * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace * character of `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the index of the last non-whitespace character. */ function trimmedEndIndex(string) { var index = string.length; while (index-- && reWhitespace.test(string.charAt(index))) {} return index; } module.exports = trimmedEndIndex;
Version data entries
101 entries across 100 versions & 8 rubygems