Function isPow2

  • Check if bigint is a power-of-2.

    Returns

    2ⁱ = x? | i = +ve integer

    Parameters

    • x: bigint

      a bigint

    Returns boolean

Generated using TypeDoc