// Whether destroy() has run
cy.destroyed(): booleanWhether destroy() has run.
Returns
booleantrue once destroyed
Example
console.log(cy.destroyed()); // falsecy.destroy();console.log(cy.destroyed()); // truecy.destroyed — Core > Initialisation and lifecycle. Cytoscape.js signatures, parameters and return contract.
cy.destroyed — Core › Initialisation and lifecycle
Preview · Core › Initialisation and lifecycle
Read in the complete API reference · All API members
// Whether destroy() has run
cy.destroyed(): booleanWhether destroy() has run.
booleantrue once destroyed
Example
console.log(cy.destroyed()); // falsecy.destroy();console.log(cy.destroyed()); // true