// Whether the collection holds at least one element
eles.nonempty(): booleanWhether the collection holds at least one element.
Returns
booleantrue when non-empty
eles.nonempty — Collection > Iteration and aggregation. Cytoscape.js signatures, parameters and return contract.
eles.nonempty — Collection › Iteration and aggregation
Preview · Collection › Iteration and aggregation
Read in the complete API reference · All API members
// Whether the collection holds at least one element
eles.nonempty(): booleanWhether the collection holds at least one element.
booleantrue when non-empty