docs/app.9defced1.js
function (updatedTreeItem, partialTree) {
            if (partialTree === void 0) { partialTree = tree; }
            var found = false;
            partialTree.some(function (treeItem, i) {
                if (treeItem[id] === updatedTreeItem[id]) {
                    partialTree[i] = updatedTreeItem;
                    found = true;
                    return true;
                }
                found = treeItem[children] ? updateTreeItem(updatedTreeItem, treeItem[children]) : false;
                return found;
            });
            return found;
        }
function (updatedTreeItem, partialTree) {
            if (partialTree === void 0) { partialTree = tree; }
            var found = false;
            partialTree.some(function (treeItem, i) {
                if (treeItem[id] === updatedTreeItem[id]) {
                    partialTree[i] = updatedTreeItem;
                    found = true;
                    return true;
                }
                found = treeItem[children] ? updateTreeItem(updatedTreeItem, treeItem[children]) : false;
                return found;
            });
            return found;
        }
Recursively delete a tree item and all its children