21 lines
502 B
JavaScript
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']; |