Skip to content

ele.removed()

eles.removed — Collection > Metadata and identity. Cytoscape.js signatures, parameters and return contract.

eles.removed — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// Whether the first element has been removed from the graph
ele.removed(): boolean

Whether the first element has been removed from the graph. A removed element's handle stays usable — reads are no-ops or undefined, and the cached id()/group() remain readable.

Returns boolean

true when the element is no longer in the graph

Example

console.log(eles.removed()); // false

Example graph and handle setup