Sha256: 584c12ee187d533df34443cfc5ba9f4da340f12fac3aeb0ce487508360834e49
Contents?: true
Size: 414 Bytes
Versions: 69
Compression:
Stored size: 414 Bytes
Contents
var toString = require('../lang/toString'); var WHITE_SPACES = require('./WHITE_SPACES'); var ltrim = require('./ltrim'); var rtrim = require('./rtrim'); /** * Remove white-spaces from beginning and end of string. */ function trim(str, chars) { str = toString(str); chars = chars || WHITE_SPACES; return ltrim(rtrim(str, chars), chars); } module.exports = trim;
Version data entries
69 entries across 69 versions & 2 rubygems