type-plus
    Preparing search index...

    Function reduceByKey

    • Type Parameters

      • S extends Record<string | number | symbol, any>
      • T

      Parameters

      • subject: S
      • callbackfn: (
            previousValue: T,
            key: keyof S,
            currentIndex: number,
            array: string[],
            subject: S,
        ) => T
      • initialValue: T

      Returns T