Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
25
function
powerOf2(x) {
26
return
(x & (x - 1)) === 0;
27
}
28
29
// (Statement) -> boolean
30
function
nonEmpty(s) {
Callers
1
validate.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected