Skip to content
Subhajit Sahu edited this page Jun 11, 2020 · 13 revisions

Reduces values to a single value. 🏃 📼 📦 🌔 📒

object.reduce(x, fn, [acc]);
// x:   an object
// fn:  reduce function (acc, v, k, x)
// acc: initial value
Clone this wiki locally