| Modifier and Type | Method and Description |
|---|---|
JSValue |
callback(JSValue previousValue,
JSValue currentValue,
int index,
JSArray<JSValue> array)
A function to reduce a mapped value into an accumulator
|
JSValue callback(JSValue previousValue, JSValue currentValue, int index, JSArray<JSValue> array)
previousValue - previous value of the accumulatorcurrentValue - value of mapped itemindex - index in 'array'array - map array being traversed