code: 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;
          }
docs: Recursively delete a tree item and all its children