Skip to content

isPowerOfTwo

isPowerOfTwo(n): boolean | null

Defined in: packages/core/src/number/integer/power-of-two.ts:4

Returns true if n is a power of two, false otherwise.

number

boolean | null