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

Version Path
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/mout/src/string/trim.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/mout/src/string/trim.js