blob: 7d5578ebbca562cc35862ae33f9e6d12f8dd1c1c [file] [log] [blame] [edit]
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
/**
* Collects all child nodes of an element.
*
* @param node the node
*/
export default function childNodes(node) {
return node ? toArray(node.childNodes) : [];
}