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

    Function groupObjectByKey

    • Groups items into a null-prototype object according to the value of their key property. Like groupObject, but each group is narrowed to the union members whose key property matches that group's key.

      Type Parameters

      • T
      • P extends never

      Parameters

      • key: P

        The property to group by.

      Returns SinkFn<
          T,
          { [K in string
          | number
          | symbol]?: Extract<Awaited<T>, Record<P, K>>[] },
      >

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