Skip to content

eles.length

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

eles.length — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// How many elements this collection holds
eles.length: number

How many elements this collection holds.

Returns number

Example

console.log(eles.length); // 5

Example graph and handle setup