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

Function isEmpty

ark/schema/shared/inPlace.ts:44–44  ·  view source on GitHub ↗
(k: Keys)

Source from the content-addressed store, hash-verified

42const keys = (): Keys => ({ every: false, indices: false, named: new Set() })
43
44const isEmpty = (k: Keys): boolean => !k.every && !k.indices && !k.named.size
45
46const isIndexKey = (key: PropertyKey): boolean =>
47 key === "length" || (typeof key === "string" && arrayIndexMatcher.test(key))

Callers 2

meetFunction · 0.70
writesUnreadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected