MCPcopy Create free account
hub / github.com/TanStack/db / extend

Method extend

packages/db-ivm/src/multiset.ts:207–210  ·  view source on GitHub ↗
(other: MultiSet<T> | MultiSetArray<T>)

Source from the content-addressed store, hash-verified

205 }
206
207 extend(other: MultiSet<T> | MultiSetArray<T>): void {
208 const otherArray = other instanceof MultiSet ? other.getInner() : other
209 chunkedArrayPush(this.#inner, otherArray)
210 }
211
212 add(item: T, multiplicity: number): void {
213 if (multiplicity !== 0) {

Callers 3

runMethod · 0.95
test-context.tsFile · 0.80
emitInnerResultsMethod · 0.80

Calls 2

chunkedArrayPushFunction · 0.85
getInnerMethod · 0.80

Tested by

no test coverage detected