Sha256: 1e5d7c9dfa5ca307a21c82c3045a494a9d81a4db660fb6b589c81c5bb53f5b85
Contents?: true
Size: 370 Bytes
Versions: 69
Compression:
Stored size: 370 Bytes
Contents
define(['../lang/toString', './WHITE_SPACES', './ltrim', './rtrim'], function(toString, WHITE_SPACES, ltrim, 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); } return trim; });
Version data entries
69 entries across 69 versions & 2 rubygems