1
0
CompleteNodeJS/notes-app/node_modules/validator/lib/trim.js
Jason Williams 6528d7204a Section 20
2019-08-11 12:15:16 -06:00

21 lines
502 B
JavaScript

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = trim;
var _rtrim = require('./rtrim');
var _rtrim2 = _interopRequireDefault(_rtrim);
var _ltrim = require('./ltrim');
var _ltrim2 = _interopRequireDefault(_ltrim);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function trim(str, chars) {
return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
}
module.exports = exports['default'];