group

Creates an object with grouped items in the array.

Example