mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
15 lines
279 B
JavaScript
15 lines
279 B
JavaScript
"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"]; |