Closed stof closed 5 years ago
The contains collection method can be replaced with the native Element.contains API (with a caveat that the native API considers than an element contains itself, while jQuery does not).
contains
Element.contains
Note that contains is a utility, not a collection method: https://api.jquery.com/jQuery.contains/
indeed
The
contains
collection method can be replaced with the nativeElement.contains
API (with a caveat that the native API considers than an element contains itself, while jQuery does not).