filmov
tv
Using the JavaScript reduce Array Method

Показать описание
The 'reduce' array method returns a single value based on data in the array. The method takes a callback function that behaves as a reducer. Each invocation of the reducer assimilates a new piece of data from the array and updates the reduced value we are building towards.