src/virtual-scrolling-tree/VirtualScrollingTree.js
function forEachExpansion(expansions, fn) {
    let impl = function(expansions) {
        expansions.forEach((expansion) => {
            fn(expansion);
            impl(expansion.expansions);
        });
    };

    impl(expansions);
}
function forEachExpansion(expansions, fn) {
    let impl = function(expansions) {
        expansions.forEach((expansion) => {
            fn(expansion);
            impl(expansion.expansions);
        });
    };

    impl(expansions);
}
function forEachExpansion ( expansions , fn ) { let impl = function ( expansions ) { expansions . forEach ( ( expansion ) => { fn ( expansion ) ; impl ( expansion . expansions ) ; } ) ; } ; impl ( expansions ) ; }
Recursively iterate over the expansions and
execute the passed callback against it.

@method forEachExpansion
@private
@param {Array<Object>} expansions
@param {Functin} fn
Recursively iterate over the expansions and execute the passed callback against it .