How to Implement the SQL Aggregate Functions with the Array Reducers in JavaScript
Briefly

Implement the sum, min, and max generic reducers
An aggregate function in an SQL query performs a calculation on one or more values and returns a single value.
Read at Medium
[
|
]