|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
319 bytes
|
| Line | |
|---|
| 1 | import { trimEnd as trimEnd$1 } from '../../string/trimEnd.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function 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 |
|
|---|
| 13 | export { trimEnd };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.