// Three-way set difference against another collection
eles.diff<OtherData = Data>(other: Collection<NodeData, EdgeData, OtherData>): { left: Collection<NodeData, EdgeData, Data>; right: Collection<NodeData, EdgeData, OtherData>; both: Collection<NodeData, EdgeData, Data>; }Three-way set difference against another collection.
| Name | Description |
|---|---|
other: Collection<NodeData, EdgeData, OtherData> | the collection to compare with |
Returns
{ left: Collection<NodeData, EdgeData, Data>; right: Collection<NodeData, EdgeData, OtherData>; both: Collection<NodeData, EdgeData, Data>; }{ left: only in this, right: only in other, both: in both }
Example
const result = cy.getElementById('a').diff(cy.getElementById('b'));console.log(result.both.length); // 0