MCPcopy 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

indentMethod · 0.95
BitSet.test.tsFile · 0.45
splitMethod · 0.45
updateMethod · 0.45
isInsideEditedChunkMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected