source: node_modules/es-toolkit/dist/string/trim.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 249 bytes
Line 
1import { trimEnd } from './trimEnd.mjs';
2import { trimStart } from './trimStart.mjs';
3
4function trim(str, chars) {
5 if (chars === undefined) {
6 return str.trim();
7 }
8 return trimStart(trimEnd(str, chars), chars);
9}
10
11export { trim };
Note: See TracBrowser for help on using the repository browser.