utils/node_modules/validator/es/lib/trim.js
2024-02-07 01:33:07 -05:00

5 lines
144 B
JavaScript

import rtrim from './rtrim';
import ltrim from './ltrim';
export default function trim(str, chars) {
return rtrim(ltrim(str, chars), chars);
}