UNPKG

@n3okill/utils

Version:
15 lines 556 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.trim = trim; const trimLeft_1 = require("./trimLeft"); const trimRight_1 = require("./trimRight"); /** * Remove given characters from left and right side of the string * @param str String to remove characters from * @param chars The characters to remove, if not defined removes empty spaces * @returns Trimmed string */ function trim(str, chars) { return (0, trimLeft_1.trimLeft)((0, trimRight_1.trimRight)(str, chars), chars); } //# sourceMappingURL=trim.js.map