LendAndRegret/node_modules/es-toolkit/dist/compat/math/parseInt.mjs
2026-05-02 17:27:43 +08:00

9 lines
155 B
JavaScript

function parseInt(string, radix = 0, guard) {
if (guard) {
radix = 0;
}
return Number.parseInt(string, radix);
}
export { parseInt };