Skip to content

ele.isNode()

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

eles.isNode — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// Whether the first element is a node
ele.isNode(): boolean

Whether the first element is a node.

Returns boolean

true for a node

Example

console.log(eles.isNode()); // true

Example graph and handle setup