MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / constructor

Method constructor

src/BitSet.ts:4–6  ·  view source on GitHub ↗
(arg?: BitSet)

Source from the content-addressed store, hash-verified

2 declare bits: number[]
3
4 constructor(arg?: BitSet) {
5 this.bits = arg instanceof BitSet ? arg.bits.slice() : []
6 }
7
8 add(n: number): void {
9 this.bits[n >> 5] |= 1 << (n & 31)

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected