/**
 * @since Last modified: 2023-12-04 18:17:51
 * @function contain
 * @description Determine whether the two nodes include a relationship.
 * @param  {getEl} child - Child node.
 * @param  {getEl} parent - Parent node.
 * @returns {boolean} Return true or false.
 * @see {@link https://codepen.io/axui/pen/zYeMmgb|demo @ codepen}
 * @example
 * ax.preventDefault(event);
 * <!--return null-->
 */
'use strict';
import getEl from "./getEl";
const contains = (child: any, parent: any):boolean => {
    let childDom = getEl(child),
        parentDom = getEl(parent);
    return childDom && parentDom && parentDom.contains(childDom) ? true : false;
}
export default contains;
