уменьшить параметры

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)
Mehedi Islam Ripon