Function: contains()
function contains(container, contained): boolean;
Defined in: src/static.ts
Checks to see if the contained DOM element is a descendant of the
container DOM element.
Parameters
| Parameter | Type | Description |
|---|---|---|
container | AnyNode | Potential parent node. |
contained | AnyNode | Potential child node. |
Returns
boolean
Indicates if the nodes contain one another.
Alias
Cheerio.contains