apps/scully-docs/src/app/components/nav-list/nav-list.service.js
/** helper to quickly flatten out a docs-tree to make it easier to find /modify stuff */
helper to quickly flatten out a docs-tree to make it easier to find /modify stuff
helper to quickly flatten out a docs - tree to make it easier to find / modify stuff
function flattenTree(docTree, list = []) {
    list.push(docTree);
    docTree.inOrder.forEach((row) => {
        flattenTree(row, list);
    });
    return list;
}
function flattenTree ( docTree , list = [ ] ) { list . push ( docTree ) ; docTree . inOrder . forEach ( ( row ) => { flattenTree ( row , list ) ; } ) ; return list ; }
helper to quickly flatten out a docs-tree to make it easier to find /modify stuff
helper to quickly flatten out a docs - tree to make it easier to find / modify stuff