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

Function internedTable

ark/aot/settingsValidators.ts:952–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950}
951var tablesByKey = /* @__PURE__ */ new Map()
952var internedTable = key => {
953 let table = tablesByKey.get(key)
954 if (!table) tablesByKey.set(key, (table = new InternTable()))
955 return table
956}
957var checkedDefaults = /* @__PURE__ */ new InternTable()
958var intern = (table, holes, create, defaults = []) => {
959 for (const hole of holes) table = table.next(hole)

Callers 1

internedFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected