Show multiple relatives in the nodes-grid view

This commit is contained in:
Simon Howe
2017-06-26 13:28:04 +02:00
parent f0ae2bd98c
commit ffd531e44a
2 changed files with 38 additions and 13 deletions

View File

@@ -26,3 +26,7 @@ export function moveElement(array, from, to) {
}
return insertElement(removeElement(array, from), to, array[from]);
}
export function intersperse(items, value) {
return [].concat(...items.map(e => [value, e])).slice(1);
}