nodes

nodes.has

has(nodeId: string): boolean

Check whether a node with the given id exists in the graph.

Not undoable (read-only). Does not emit any event.

nodeIdstringThe id to test.

Returns: boolean