Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "groupBy"

Index

Functions

Functions

groupBy

  • groupBy<T, K>(this: Sequence<T>, keySelector: function): Map<K, Array<T>>
  • Groups all elements of the sequence into a map. Keys are determined by the given keySelector function.

    Type parameters

    • T

    • K

    Parameters

    • this: Sequence<T>
    • keySelector: function
        • (value: T): K
        • Parameters

          • value: T

          Returns K

    Returns Map<K, Array<T>>