MCPcopy Create free account
hub / github.com/tinyplex/tinybase / pairClone

Function pairClone

src/common/pairs.ts:15–15  ·  view source on GitHub ↗
(array: Pair<Value>)

Source from the content-addressed store, hash-verified

13export const pairNewMap = <Value>(): Pair<IdMap<Value>> => [mapNew(), mapNew()];
14
15export const pairClone = <Value>(array: Pair<Value>): Pair<Value> => [...array];
16
17export const pairIsEqual = <Value>([entry1, entry2]: Pair<Value>): boolean =>
18 entry1 === entry2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…