Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/cjs/childNodes.js 345 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"];