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

Function hasLabel

packages/graph/src/Graph.ts:786–790  ·  view source on GitHub ↗

* Check if the element has a specific label.

(
    label: TOtherLabel,
  )

Source from the content-addressed store, hash-verified

784 * Check if the element has a specific label.
785 */
786 public hasLabel<TOtherLabel>(
787 label: TOtherLabel,
788 ): this is Element<TSchema, TOtherLabel, TProperties, TStoredElement> {
789 return this.label === (label as unknown);
790 }
791
792 /**
793 * Check if the element has a specific property.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected