// Whether both collections hold exactly the same elements, ignoring order
eles.same(other: Collection): booleanWhether both collections hold exactly the same elements, ignoring order.
| Name | Description |
|---|---|
other: Collection | the collection to compare against |
Returns
booleantrue when the element sets are equal
Example
const other = cy.getElementById('b');console.log(cy.getElementById('a').same(other)); // falseAlso spelled eles.equal, eles.equals.