extendDataItem

Similar to the Object.assign function. Additionally, creates a new array for the subitems.

Parameters

item

any

The source data item.

subItemsField

string

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

propsToExtend?

any

The props with which the source data item will be extended.

Returns

any

  • The target data item.

In this article

Not finding the help you need?