Function groupBy

  • Creates an object composed of keys generated from the results of running each element of array through iteratee.

    Type Parameters

    • Item

      Type of the array elements.

    Parameters

    • array: Item[]

      The collection to iterate over.

    • iteratee: Iteratee<Item>

      The iteratee to transform keys.

    Returns Record<string | number | symbol, Item[]>

    The composed aggregate object.

Generated using TypeDoc