Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function reduce

    • Create a new value with elements that are filtered and transformed by a provided reducer function.

      Type Parameters

      • T
      • U

      Parameters

      • this: Set<T>
      • reducer: (accum: U, element: T, index: number, set: Set<T>) => U

        A reducer function applied to each value.

      • Optionalinitial: U

        The initial value of the returned accumulator.

      Returns U

      The final value of the accumulator.

      Array#reduce