Function reduce

  • Reduce values to a single value.

    Returns

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

    Parameters

    • x: object

      an object

    • fr: ReduceFunction

      reduce function (acc, v, k, x)

    • Optional acc: any

      initial value

    Returns any

Generated using TypeDoc