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

Function writtenKeysOf

ark/schema/node.ts:445–448  ·  view source on GitHub ↗
(json: object, array: boolean)

Source from the content-addressed store, hash-verified

443}
444
445const writtenKeysOf = (json: object, array: boolean): string[] =>
446 array ?
447 Object.keys(json)
448 : Object.keys(json).filter(k => !isUnwritten((json as Dict)[k]))
449
450export abstract class BaseNode<
451 // uses -ignore rather than -expect-error because this is not an error in .d.ts

Callers 1

isJsonEqualFunction · 0.85

Calls 2

isUnwrittenFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected