Function numberToBytes

  • Convert a number to a Uint8Array.

    Returns

    The bytes as Uint8Array.

    Throws

    If the number is not a safe integer.

    Parameters

    • value: number

      The number to convert to bytes.

    Returns Uint8Array