|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
412 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const trimEnd$1 = require('../../string/trimEnd.js');
|
|---|
| 6 |
|
|---|
| 7 | function trimEnd(str, chars, guard) {
|
|---|
| 8 | if (str == null) {
|
|---|
| 9 | return '';
|
|---|
| 10 | }
|
|---|
| 11 | if (guard != null || chars == null) {
|
|---|
| 12 | return str.toString().trimEnd();
|
|---|
| 13 | }
|
|---|
| 14 | return trimEnd$1.trimEnd(str, chars.toString().split(''));
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | exports.trimEnd = trimEnd;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.