// Whether every element of other is also in this collection
eles.contains(other: Collection): booleanWhether every element of other is also in this collection.
| Name | Description |
|---|---|
other: Collection | the candidate subset |
Returns
booleantrue when other is contained
Example
const other = cy.getElementById('b');console.log(cy.getElementById('a').contains(other)); // falseAlso spelled eles.has.