docs/demo/synclib/build/synclib.js
// Visit a tree of objects with media children
Visit a tree of objects with media children
Visit a tree of objects with media children
function visit(node, fn) {
    fn(node);
    if (node?.media) {
        node.media.map(n => visit(n, fn));
    }
}
function visit ( node , fn ) { fn ( node ) ; if ( node ?. media ) { node . media . map ( n => visit ( n , fn ) ) ; } }
Visit a tree of objects with media children
Visit a tree of objects with media children