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

    Function groupObject

    • Groups items into a null-prototype object according to the key returned by fn. The async counterpart of Object.groupBy. The key function may be async; its result is awaited.

      Type Parameters

      • T
      • K extends PropertyKey

      Parameters

      Returns SinkFn<T, Partial<Record<K, Awaited<T>[]>>>

      A sink resolving to an object mapping each key to the items in that group, in source order.