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

Method concat

packages/db-ivm/src/multiset.ts:61–66  ·  view source on GitHub ↗

* Concatenate two collections together.

(other: MultiSet<T>)

Source from the content-addressed store, hash-verified

59 * Concatenate two collections together.
60 */
61 concat(other: MultiSet<T>): MultiSet<T> {
62 const out: MultiSetArray<T> = []
63 chunkedArrayPush(out, this.#inner)
64 chunkedArrayPush(out, other.getInner())
65 return new MultiSet(out)
66 }
67
68 /**
69 * Produce as output a collection that is logically equivalent to the input

Callers 5

readJsonBodyFunction · 0.80
pullResultDatabaseFunction · 0.80
multiset.test.tsFile · 0.80
ProjectPageFunction · 0.80

Calls 2

chunkedArrayPushFunction · 0.85
getInnerMethod · 0.80

Tested by

no test coverage detected