childElements.js 180 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 /** * Collects all child elements of an element. * * @param node the element */ export default function childElements(node) { return node ? Array.from(node.children) : []; }