source:
node_modules/es-toolkit/dist/compat/string/startsWith.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 241 bytes | |
| Line | |
|---|---|
| 1 | function startsWith(str, target, position) { |
| 2 | if (str == null || target == null) { |
| 3 | return false; |
| 4 | } |
| 5 | if (position == null) { |
| 6 | position = 0; |
| 7 | } |
| 8 | return str.startsWith(target, position); |
| 9 | } |
| 10 | |
| 11 | export { startsWith }; |
Note:
See TracBrowser
for help on using the repository browser.
