|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
333 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | import { trimStart as trimStart$1 } from '../../string/trimStart.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function trimStart(str, chars, guard) {
|
|---|
| 4 | if (str == null) {
|
|---|
| 5 | return '';
|
|---|
| 6 | }
|
|---|
| 7 | if (guard != null || chars == null) {
|
|---|
| 8 | return str.toString().trimStart();
|
|---|
| 9 | }
|
|---|
| 10 | return trimStart$1(str, chars.toString().split(''));
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | export { trimStart };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.