1
0
CompleteNodeJS/notes-app/node_modules/validator/lib/trim.js

21 lines
502 B
JavaScript
Raw Normal View History

2019-08-11 18:15:16 +00:00
'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'];