Files
khalij-pay/node_modules/dom-helpers/cjs/childNodes.js
2025-10-23 21:52:07 +03:30

16 lines
345 B
JavaScript

"use strict";
exports.__esModule = true;
exports.default = childNodes;
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
/**
* Collects all child nodes of an element.
*
* @param node the node
*/
function childNodes(node) {
return node ? toArray(node.childNodes) : [];
}
module.exports = exports["default"];