• Converts a bigint scalar value into an array of bits, represented as numbers. This function is particularly useful for examining the binary structure of bigints, which can be necessary for bit manipulation and understanding the representation of numbers at a lower level.

    Parameters

    • n: bigint

      The bigint scalar value to convert into bits.

    Returns number[]

    An array of numbers representing the bits of 'n', starting from the least significant bit.