• Parses a string as a safe integer in the specified radix. This method supports the scientific notation (e.g. 5e1 produces 50). The Scientific notation is only allowed in base 10.

    Parameters

    • Rest ...value: [value: string | number | bigint, radix: number]

      The string to parse as a safe integer

    Returns null | number

    null if the input is not an integer or is not safely representable by the JS number type (use parseBigInt for that)

Methods

Methods