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

ParameterTypeDescription
containerAnyNodePotential parent node.
containedAnyNodePotential child node.

Returns

boolean

Indicates if the nodes contain one another.

Alias

Cheerio.contains

See

https://api.jquery.com/jQuery.contains/