New to KendoReactStart a free 30-day trial

mapTree
Premium

Creates a new array with the results of calling the provided callback function on every element in the provided data tree.

Parameters

tree

any[]

The data tree.
subItemsField

string

The field which points to the subitems collection of each data item.
callback

(value: any) => any

The callback function.

Returns

any[]

- The new data tree.
Not finding the help you need?
Contact Support