MCPcopy Create free account
hub / github.com/codemix/graph / hasProperty

Function hasProperty

packages/graph/src/Graph.ts:813–818  ·  view source on GitHub ↗
(key: string, value: any = undefined)

Source from the content-addressed store, hash-verified

811 TStoredElement
812 >;
813 public hasProperty(key: string, value: any = undefined) {
814 if (value === undefined) {
815 return this[$StoredElement].properties[key as keyof object] !== undefined;
816 }
817 return this[$StoredElement].properties[key as keyof object] === value;
818 }
819
820 /**
821 * Get a specific property of the element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected