MCPcopy Index your code
hub / github.com/angular/angular / parseIntAutoRadix

Function parseIntAutoRadix

packages/common/src/i18n/format_number.ts:531–540  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

529}
530
531export function parseIntAutoRadix(text: string): number {
532 const result: number = parseInt(text);
533 if (isNaN(result)) {
534 throw new RuntimeError(
535 RuntimeErrorCode.INVALID_INTEGER_LITERAL,
536 ngDevMode && 'Invalid integer literal when parsing ' + text,
537 );
538 }
539 return result;
540}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…