MCPcopy Index your code
hub / github.com/MultithreadedJSBook/code-samples / getBool

Function getBool

ch4-serialization/booleans.js:6–8  ·  view source on GitHub ↗
(slot)

Source from the content-addressed store, hash-verified

4 view[0] = (view[0] & ~(1 << slot)) | ((value|0) << slot);
5}
6function getBool(slot) {
7 return !((view[0] & (1 << slot)) === 0);
8}
9// THIS SHOULD NOT APPEAR IN PRINT
10
11console.log(view[0]); // 0

Callers 1

booleans.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected