melonJS
    Preparing search index...

    Function isPowerOfFour

    • returns true if the given value is a power of four (1, 4, 16, 64, …). Like isPowerOfTwo, only a positive integer can be one: a fraction, a negative number, NaN or Infinity is not.

      Parameters

      • val: number

        number to test

      Returns boolean

      true if number is a power of four