📅  最后修改于: 2022-03-11 15:00:26.585000             🧑  作者: Mango
The reduce method in JavaScript takes four parameters:
1. Accumulator
2. Current Value
3. Current Index
4. Source Array
### Example
reduce((accumulator, currentValue, index, array) => { ... }, initialValue)