katoikia-app/web-ui/web-react/node_modules/dom-helpers/cjs/parents.js

19 lines
453 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = parents;
var _collectElements = _interopRequireDefault(require("./collectElements"));
/**
* Collects all parent elements of a given element.
*
* @param node the element
*/
function parents(node) {
return (0, _collectElements.default)(node, 'parentElement');
}
module.exports = exports["default"];