Function intToBigInt

  • Converts an integer-compatible value to a bigint

    Parameters

    Returns bigint

    The bigint representation of the value

    Example

    intToBigInt(123); // 123n
    intToBigInt('0xbeef'); // 48879n

Generated using TypeDoc