Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ constructor
Method
constructor
src/BitSet.js:2–4 ·
view source on GitHub ↗
(arg)
Source
from the content-addressed store, hash-verified
1
export
default
class
BitSet {
2
constructor(arg) {
3
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
4
}
5
6
add(n) {
7
this.bits[n >> 5] |= 1 << (n & 31);
Callers
nothing calls this directly
Calls
1
slice
Method · 0.45
Tested by
no test coverage detected