// Whether every element of other is in this collection's neighborhood
eles.allAreNeighbors(other: Collection): booleanWhether every element of other is in this collection's neighborhood.
| Name | Description |
|---|---|
other: Collection | the elements to test |
Returns
booleantrue when all of them are neighbors
Example
const other = cy.getElementById('b');console.log(cy.getElementById('a').allAreNeighbors(other)); // trueAlso spelled eles.allAreNeighbours.