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

Function deletableKeysOf

ark/schema/shared/transform.ts:70–73  ·  view source on GitHub ↗
(data: object)

Source from the content-addressed store, hash-verified

68
69// the keys deleting undeclared ones reads
70const deletableKeysOf = (data: object): (string | symbol)[] => [
71 ...Object.keys(data),
72 ...Object.getOwnPropertySymbols(data)
73]
74
75export const isDeletableKeyOf = (data: object, k: string | symbol): boolean =>
76 typeof k === "symbol" ?

Callers 3

copyOfFunction · 0.70
writeCopiedFunction · 0.70
joinKeptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected