@laserware/dominator
    Preparing search index...

    Function hasParentElement

    • Checks if the specified child has the specified parent. If either element doesn't exist in the DOM, returns false.

      Parameters

      • child: null | Target

        Element, EventTarget, or CSS selector.

      • parent: null | Target

        Element, EventTarget, or CSS selector of parent.

      Returns boolean

      true if the specified child is in the specified parent.