Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/cjs/childElements.js 279 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  
  exports.__esModule = true;
  exports.default = childElements;
  
  /**
   * Collects all child elements of an element.
   * 
   * @param node the element
   */
  function childElements(node) {
    return node ? Array.from(node.children) : [];
  }
  
  module.exports = exports["default"];