@s-libs/micro-dash
    Preparing search index...

    Function reduce

    • Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,377 bytes
      • Micro-dash: 386 bytes

      Type Parameters

      • T extends readonly any[] | Nil

      Parameters

      • array: T
      • iteratee: (
            accumulator: NonNullable<T>[number],
            value: NonNullable<T>[number],
            index: number,
        ) => NonNullable<T>[number]

      Returns NonNullable<T>[number] | IfCouldBe<T, Nil, undefined>

    • Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,377 bytes
      • Micro-dash: 386 bytes

      Type Parameters

      • E
      • A

      Parameters

      • array: Nil | readonly E[]
      • iteratee: (accumulator: A, value: E, index: number) => A
      • accumulator: A

      Returns A

    • Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,377 bytes
      • Micro-dash: 386 bytes

      Type Parameters

      • T

      Parameters

      • object: T
      • iteratee: (
            accumulator: NonNullable<T>[keyof NonNullable<T>],
            value: NonNullable<T>[keyof NonNullable<T>],
            key: keyof NonNullable<T>,
        ) => NonNullable<T>[keyof NonNullable<T>]

      Returns IfCouldBe<T, Nil, undefined> | NonNullable<T>[keyof NonNullable<T>]

    • Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,377 bytes
      • Micro-dash: 386 bytes

      Type Parameters

      • T
      • A

      Parameters

      • object: T
      • iteratee: (
            accumulator: A,
            value: NonNullable<T>[keyof NonNullable<T>],
            key: keyof NonNullable<T>,
        ) => A
      • accumulator: A

      Returns A