Skip to content

nextPowerOfTwo

nextPowerOfTwo(n): number | null

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

Returns the smallest power of two greater than or equal to n.

number

number | null