🚧

The .groupBy() should always be followed by an aggregate function.

The .groupBy() function can contain one to many arguments. Each argument is the fields to collectively group by.

groupBy( string, string, string, … )
interface IAggregate {
  sum(...fields: string[]): jinqJs;
  count(...fields: string[]): jinqJs;
  avg(...fields: string[]): jinqJs;
  min(...fields: string[]): jinqJs;
  max(...fields: string[]): jinqJs;
}

groupBy(field: string, ...fields: string[]): IAggregate;