Sha256: 8aa33808ed188e825125d8fb0abaf638b5eacc4e312ea068e2d05cc37321b52b
Contents?: true
Size: 444 Bytes
Versions: 92
Compression:
Stored size: 444 Bytes
Contents
var trimmedEndIndex = require('./_trimmedEndIndex'); /** Used to match leading whitespace. */ var reTrimStart = /^\s+/; /** * The base implementation of `_.trim`. * * @private * @param {string} string The string to trim. * @returns {string} Returns the trimmed string. */ function baseTrim(string) { return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string; } module.exports = baseTrim;
Version data entries
92 entries across 91 versions & 8 rubygems