Function group

  • Groups the specified iterable of values into an InternMap from key to array of value.

    Type Parameters

    • TObject

    • TKeys extends unknown[]

    Parameters

    • iterable: Iterable<TObject>

      The iterable to group.

    • Rest ...keys: {
          [Index in string | number | symbol]: ((value, index, values) => TKeys[Index])
      }

      The key functions.

    Returns NestedInternMap<TObject, TObject[], TKeys>