@cprecioso/async-iterable-helpers
    Preparing search index...

    Function groupMap

    • Groups items into a Map according to the key returned by fn. The async counterpart of Map.groupBy. Keys are compared with SameValueZero, so they may be any value. The key function may be async; its result is awaited.

      Type Parameters

      • T
      • K

      Parameters

      Returns SinkFn<T, Map<K, Awaited<T>[]>>

      A sink resolving to a Map from each key to the items in that group, in source order.