Function isPowerOfTwo

  • Returns true if n is a power of two.

    Parameters

    • n: number

    Returns boolean