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.
NaN
Infinity
number to test
true if number is a power of four
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,
NaNorInfinityis not.