MCPcopy Create free account
hub / github.com/arktypeio/arktype / insertAll

Function insertAll

ark/type/deferred.ts:490–491  ·  view source on GitHub ↗
(terms: string[], f: Facts)

Source from the content-addressed store, hash-verified

488}
489
490const insertAll = (terms: string[], f: Facts) =>
491 f.terms ? f.terms.every(t => insert(terms, t)) : insert(terms, f.key)
492
493const scanUnion = (def: string): Facts | undefined => {
494 const parts = splitTop(def, " | ")

Callers 2

scanUnionFunction · 0.85
deferUnionFunction · 0.85

Calls 1

insertFunction · 0.70

Tested by

no test coverage detected