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.
The callback function.
(value: any) => any
- The new data tree.