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

Function hasOwn

ark/aot/util.ts:43–44  ·  view source on GitHub ↗
(o: object, k: PropertyKey)

Source from the content-addressed store, hash-verified

41): PackageManifest => parseJsonText(text, path) as PackageManifest
42
43export const hasOwn = (o: object, k: PropertyKey): boolean =>
44 Object.prototype.hasOwnProperty.call(o, k)
45
46export const capitalize = (s: string): string =>
47 s ? s[0].toUpperCase() + s.slice(1) : s

Callers 15

standalone.test.tsFile · 0.90
isSpreadableObjectDefFunction · 0.90
defDropsUserPredicateFunction · 0.90
walkDefinitionFunction · 0.90
directFunction · 0.90
lookupInScopeFunction · 0.90
jsonExportOfMethod · 0.90
isBuiltinFunction · 0.90
hasMethod · 0.90
writeIssueFeaturesIntoFunction · 0.90
checkerFunction · 0.90
keepDeclaredFunction · 0.90

Calls 1

callMethod · 0.80

Tested by 3

isUnreadFunction · 0.72
isUnreadFunction · 0.72
expectSafeProtoFunction · 0.72