1-liners
Version:
Useful oneliners and shorthand functions
23 lines (20 loc) • 325 B
JavaScript
/**
* @module 1-liners/trim
*
* @description
*
* Same as `'STR'.trim()`.
*
* @example
*
* const trim = require('1-liners/trim');
*
* trim(' super ') // => super
*
*/
;
exports.__esModule = true;
exports["default"] = function (str) {
return str.trim();
};
module.exports = exports["default"];