source: node_modules/es-toolkit/dist/compat/string/trimEnd.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: 319 bytes
Line 
1import { trimEnd as trimEnd$1 } from '../../string/trimEnd.mjs';
2
3function trimEnd(str, chars, guard) {
4 if (str == null) {
5 return '';
6 }
7 if (guard != null || chars == null) {
8 return str.toString().trimEnd();
9 }
10 return trimEnd$1(str, chars.toString().split(''));
11}
12
13export { trimEnd };
Note: See TracBrowser for help on using the repository browser.