A function that accepts up to three arguments. The reduce method calls the reducer function one time for each element.
Calls the specified callback function for all the elements. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to three arguments. The reduce method calls the reducer function one time for each element.
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the reducer function provides this value as an argument instead of a value.
Generated using TypeDoc
Calls the specified callback function for all the elements. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
See