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.
key
The property to group by.
A sink resolving to an object mapping each key to the items in that group, in source order.
Groups items into a null-prototype object according to the value of their
keyproperty. Like groupObject, but each group is narrowed to the union members whosekeyproperty matches that group's key.