Function reduce

  • Reduce values to a single value.

    Parameters

    • x: object

      an object

    • fr: ReduceFunction

      reduce function (acc, v, k, x)

    • Optional acc: any

      initial value

    Returns any

    fr(fr(acc, v₀), v₁)... | fr(acc, v₀) = v₀ if acc not given

Generated using TypeDoc