mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
16 lines
345 B
JavaScript
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"];
|