Function groupBy

  • groups elements of an array into a map using values returned by selector. Intended to work as Linq.GroupBy

    Type Parameters

    • K
    • V

    Parameters

    • array: V[]
    • selector: (o: V) => K

    Returns Map<K, V[]>