• Create a map aka dictionary from a list.

    Type Parameters

    • T

    • K

    Parameters

    • ts: Iterable<T>

      list of things

    • key: ((t) => K)

      function to get the key from a thing

        • (t): K
        • Parameters

          • t: T

          Returns K

    Returns Map<K, T[]>

    a map of keys and arrays of values

Generated using TypeDoc