Initial commit
This commit is contained in:
16
node_modules/dom-helpers/cjs/childNodes.js
generated
vendored
Normal file
16
node_modules/dom-helpers/cjs/childNodes.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"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"];
|
||||
Reference in New Issue
Block a user