Math.isPowerOfTwo
isPowerOfTwo(val: number) → {boolean}
returns true if the given value is a power of two
Name | Type | Description |
---|---|---|
val | number |
Type | Description |
---|---|
boolean |
isPowerOfTwo(val: number) → {boolean}
returns true if the given value is a power of two
Name | Type | Description |
---|---|---|
val | number |
Type | Description |
---|---|
boolean |