1 | ;
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.default = childElements;
|
5 |
|
6 | /**
|
7 | * Collects all child elements of an element.
|
8 | *
|
9 | * @param node the element
|
10 | */
|
11 | function childElements(node) {
|
12 | return node ? Array.from(node.children) : [];
|
13 | }
|
14 |
|
15 | module.exports = exports["default"]; |
\ | No newline at end of file |