"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _getAncestors = _interopRequireDefault(require("./getAncestors"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var _default = exports["default"] = function _default(parent, target) {
  var ancestors = (0, _getAncestors["default"])(target);
  if (ancestors.length === 0) return false;
  return ancestors.some(function (node) {
    return node === parent;
  });
};