const isDescendant = (child, parent) => parent.contains(child);

javascript Check if an element is a descendant of another

Similar Code Examples