Type Definitions
reducerCallback
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
accumulator |
* | The accumulator accumulates callback's return values. It is the accumulated value previously returned in the last invocation of the callback—or initialValue, if it was supplied |
|
element |
* | The current element being processed in the array. |
|
index |
number |
<optional> |
The index of the current element being processed in the array. |
array |
Array |
<optional> |
The array function was called upon. |
Type:
- object