OCA_Backend/api/node_modules/validator/es/lib/trim.js

5 lines
144 B
JavaScript
Raw Normal View History

2022-01-22 13:36:44 +00:00
import rtrim from './rtrim';
import ltrim from './ltrim';
export default function trim(str, chars) {
return rtrim(ltrim(str, chars), chars);
}