Creates a new array with the results of calling the provided callback function on every element in the provided data tree.
The data tree.
The field which points to the subitems collection of each data item.
(value: any) => any
The callback function.
- The new data tree.