contains

The contains JS Node returns true if other is an inclusive descendant of node; otherwise false.

Syntax

node.contains(other)

Parameters

other

A node.

Examples

1 · true

2 · false

HomeMenu