Function isPowerOfTwo

Returns true if x is a power of two

  • Parameters

    • x: number

    Returns boolean

    True if x is a power of two