Mirror Engine API
Mirror Engine API / math / powerOfTwo
function powerOfTwo(x: number): boolean
Returns true if argument is a power-of-two and false otherwise.
number
Number to check for power-of-two property.
boolean
true if power-of-two and false otherwise.