I have an array of JavaScript objects with potential children who share the same type as their parent. These children can also have their own set of children. My goal is to loop through all nodes and modify certain values.
[
{
"text": "Auto",
"icon": "/libs/jstree/folder.png",
"state": {
"opened": true,
"selected": true
}
},
...
Within the given object, I aim to iterate through all nodes and delete the "state" attribute. How should I go about this process?