function toChildArray(children, out) {
	out = out || [];
	if (children == NULL || typeof children == 'boolean') {
	} else if (isArray(children)) {
		children.some(child => {
			toChildArray(child, out);
		});
	} else {
		out.push(children);
	}
	return out;
}
Flatten and loop through the children of a virtual node
@param {ComponentChildren} children The unflattened children of a virtual
node
@returns {VNode[]}