MCPcopy Index your code
hub / github.com/OpenCoworkAI/open-codesign / hasOwn

Function hasOwn

packages/shared/src/editmode.ts:240–242  ·  view source on GitHub ↗
(value: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

238}
239
240function hasOwn(value: Record<string, unknown>, key: string): boolean {
241 return Object.prototype.hasOwnProperty.call(value, key);
242}
243
244function optionalNumber(value: Record<string, unknown>, key: string): number | null | undefined {
245 if (!hasOwn(value, key)) return undefined;

Callers 2

optionalNumberFunction · 0.85
validateEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected