source:
node_modules/es-toolkit/dist/compat/math/parseInt.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 155 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | function parseInt(string, radix = 0, guard) { |
| 2 | if (guard) { | |
| 3 | radix = 0; | |
| 4 | } | |
| 5 | return Number.parseInt(string, radix); | |
| 6 | } | |
| 7 | ||
| 8 | export { parseInt }; |
Note:
See TracBrowser
for help on using the repository browser.
