Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ add
Method
add
benchmark/data.js:6–8 ·
view source on GitHub ↗
(n2)
Source
from the content-addressed store, hash-verified
4
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
5
}
6
add(n2) {
7
this.bits[n2 >> 5] |= 1 << (n2 & 31);
8
}
9
has(n2) {
10
return
!!(this.bits[n2 >> 5] & (1 << (n2 & 31)));
11
}
Callers
1
addSourcemapLocation
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected