📜  减少参数 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:26.585000             🧑  作者: Mango

代码示例1
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)