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

13 lines
252 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function parseInt(string, radix = 0, guard) {
if (guard) {
radix = 0;
}
return Number.parseInt(string, radix);
}
exports.parseInt = parseInt;