Function parseBigInt

  • Converts a string to a bigint.

    Parameters

    • s: string

      A string to parse.

    Returns bigint | undefined

    A bigint representation of s if successful; otherwise, undefined.