Analogous to Array.reduce in Javascript. A wrapper around base::Reduce which provides the same parameter order.

reduce(object, func, init)

Arguments

object

The object to filter

func

The reducer function

init

The initial value