refactor(edgerenderer): cleanup edge utils

This commit is contained in:
Christopher Möller
2021-10-21 14:33:34 +02:00
parent b15d3012e0
commit 64239fbb51
3 changed files with 16 additions and 24 deletions
+1 -2
View File
@@ -2,10 +2,9 @@ import { Node } from '../types';
function flat(arr: Node[], target: Node[]) {
arr.forEach(function (el) {
target.push(el);
if (el.childNodes) {
flat(el.childNodes, target);
} else {
target.push(el);
}
});
}