JavaScript Recursive Search in JSON Object
JavaScript Recursive Search in JSON Object: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a JavaScript function that performs a recursive search to find a specific node by its ID in a tree-like JSON structure. Each node in the tree has a unique id property and may have a…
The task
You need to implement a JavaScript function that performs a recursive search to find a specific node by its ID in a tree-like JSON structure. Each node in the tree has a unique `id` property and may have a `children` array containing child nodes.
Part of PrimeIntellect/Terminal-Lego-15k.