MCPcopy
hub / github.com/asm-js/validator / powerOf2

Function powerOf2

lib/validate.js:25–27  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

23
24// (number) -> boolean
25function powerOf2(x) {
26 return (x & (x - 1)) === 0;
27}
28
29// (Statement) -> boolean
30function nonEmpty(s) {

Callers 1

validate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected