isPowerOfTwo
isPowerOfTwo(value) ⇒ boolean
Is the number a power of two? e.g. 2,4,8,16 etc. NOTE: only valid for non-negative integers, includes 0
Kind: global function
| Param | Type |
|---|---|
| value | number |
booleanIs the number a power of two? e.g. 2,4,8,16 etc. NOTE: only valid for non-negative integers, includes 0
Kind: global function
| Param | Type |
|---|---|
| value | number |