Sha256: a041cfcbcbbe3b29223e9dcf350249d3ca21ce6a80a40c41b7c599525d947de7
Contents?: true
Size: 357 Bytes
Versions: 84
Compression:
Stored size: 357 Bytes
Contents
exports = module.exports = trim; function trim(str){ if (str.trim) return str.trim(); return str.replace(/^\s*|\s*$/g, ''); } exports.left = function(str){ if (str.trimLeft) return str.trimLeft(); return str.replace(/^\s*/, ''); }; exports.right = function(str){ if (str.trimRight) return str.trimRight(); return str.replace(/\s*$/, ''); };
Version data entries
84 entries across 84 versions & 1 rubygems