Creates a new array with the results of calling the provided callback function
on the element which match the
level in the provided data tree.
The data tree.
An array of indexes of each parent and current item in the data tree.
The field which points to the subitems collection of each data item.
(value: any) => any
The callback function.