• Creates an object composed of keys generated from the results of running each element of collection through iteratee. The corresponding value of each key is an array of the elements responsible for generating the key. The iteratee is invoked with one argument: (value).

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | ArrayLike<T>

      The collection to iterate over.

    • Optional iteratee: ValueIteratee<T>

      The function invoked per iteration.

    Returns {
        [index: string]: T[];
    }

    Returns the composed aggregate object.

    • [index: string]: T[]