UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

13 lines (9 loc) 252 B
'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;