January 2020
Intermediate to advanced
470 pages
11h 13m
English
Answer this question: how many times have you had to loop through an array, performing an operation (say, summing) to produce a single value (maybe the sum of all the array values) as a result? Probably many, many, many times. This kind of operation can usually be implemented functionally by applying reduce() and reduceRight(). Let's start with the former!
The inner workings of the reduce() function ...
Read now
Unlock full access