Javascript – Recursively update parent child info based on key passed
I have an array of object that look this, const data = [ { key: "id1", name: "Category 1", curr: 0, total: 0, nodes: [ { key: "id2", name: "Applications", curr: 20, total: 30, nodes: [ { key: "id3", name:…