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

Method hasProperty

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

Source from the content-addressed store, hash-verified

883 value: VertexProperties<TSchema, TVertexLabel>[TKey],
884 ): this is Vertex<TSchema, TVertexLabel & VertexLabelsWithProperty<TSchema, TKey>>;
885 public hasProperty(key: string, value: any = undefined) {
886 if (value === undefined) {
887 return this[$StoredElement].properties[key as keyof object] !== undefined;
888 }
889 return this[$StoredElement].properties[key as keyof object] === value;
890 }
891
892 [customInspectSymbol]() {
893 return `Vertex("${this.id}", ${JSON.stringify(this[$StoredElement].properties)})`;

Calls

no outgoing calls

Tested by

no test coverage detected