Sha256: 202129df6df11d6763c3b5bd2bad42d74374299139c97f717fa0d0a599889acb
Contents?: true
Size: 474 Bytes
Versions: 167
Compression:
Stored size: 474 Bytes
Contents
var isSpace = require('./isSpace'); /** * Used by `_.trim` and `_.trimRight` 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 trimmedRightIndex(string) { var index = string.length; while (index-- && isSpace(string.charCodeAt(index))) {} return index; } module.exports = trimmedRightIndex;
Version data entries
167 entries across 87 versions & 9 rubygems