ga-wdi-boston / js-array-iteration-methods

JavaScript Array methods
Other
1 stars 160 forks source link

'ifs' should be changed to 'is' #25

Closed jordanallain closed 7 years ago

jordanallain commented 8 years ago

Lab: modeling and using reduceRight

-The reduceRight method ifs functionally equivalent to using reduce on the array returned by the reverse JavaScript Array method.

+The reduceRight method is functionally equivalent to using reduce on the array returned by the reverse JavaScript Array method.

Hint: Start by writing forEachRight (similar to forEach but iterating from the last element (at index length-1) through the first (at index 0).

How would reduceRight differ from reduce?