Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ has
Method
has
src/BitSet.ts:12–14 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
10
}
11
12
has(n: number): boolean {
13
return
!!(this.bits[n >> 5] & (1 << (n & 31)))
14
}
15
16
forEach(fn: (n: number) => void): void {
17
const
bits = this.bits
Callers
5
indent
Method · 0.95
BitSet.test.ts
File · 0.45
split
Method · 0.45
update
Method · 0.45
isInsideEditedChunk
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected