trim.js 494 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = trim;
  6. var _rtrim = _interopRequireDefault(require("./rtrim"));
  7. var _ltrim = _interopRequireDefault(require("./ltrim"));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function trim(str, chars) {
  10. return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);
  11. }
  12. module.exports = exports.default;
  13. module.exports.default = exports.default;