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