Skip to content

Glossary: JavaScript Basics

reduce

An array method that combines all the elements into one value, such as a total. Its callback gets the accumulator and the current element, and its second argument is the starting value.

Where the book teaches it

Related terms

Accumulatormapfilter