// Whether the two collections share at least one element
eles.anySame(other: Collection): booleanWhether the two collections share at least one element.
| Name | Description |
|---|---|
other: Collection | the collection to compare against |
Returns
booleantrue when the sets intersect
Example
const other = cy.getElementById('b');console.log(cy.getElementById('a').anySame(other)); // false