public/code.js
/**
 * Convinient way to delete children of a node
 * @param {SceneNode & ChildrenMixin } node A node with children
 */
Convinient way to delete children of a node
@param {SceneNode & ChildrenMixin } node A node with children
Convinient way to delete children of a node @param { SceneNode & ChildrenMixin } node A node with children
function removeChildren(node) {
    var length = node.children.length;
    if (length > 0) {
        for (let i = 0; i < length; i++) {
            node.children[0].remove();
        }
    }
}
function removeChildren ( node ) { var length = node . children . length ; if ( length > 0 ) { for ( let i = 0 ; i < length ; i ++ ) { node . children [ 0 ] . remove ( ) ; } } }
Convinient way to delete children of a node
 @param {SceneNode & ChildrenMixin } node A node with children
Convinient way to delete children of a node @param { SceneNode & ChildrenMixin } node A node with children