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

Function isDeletableKeyOf

ark/schema/shared/transform.ts:75–78  ·  view source on GitHub ↗
(data: object, k: string | symbol)

Source from the content-addressed store, hash-verified

73]
74
75export const isDeletableKeyOf = (data: object, k: string | symbol): boolean =>
76 typeof k === "symbol" ?
77 hasOwn(data, k)
78 : Object.prototype.propertyIsEnumerable.call(data, k)
79
80export const copyOf = (data: object): object => {
81 if (isArray(data)) {

Callers 3

tTransformMethod · 0.90
tfSharedKeyMethod · 0.90
joinKeptFunction · 0.85

Calls 2

hasOwnFunction · 0.90
callMethod · 0.80

Tested by

no test coverage detected