group by to map
This block is part of the array group and was last modified in core v14.0.4.
group by to map
v14.0.4
Groups the elements of the given array by a specified field and returns them as a map.
| Pin | Pin | Type | Default |
|---|---|---|---|
| Array The array of objects to be grouped. |
array |
||
| field The field based on which to group the objects. |
value |
| Pin | Pin | Type | Example |
|---|---|---|---|
| map An object with the value of the given field as keys and all items with the same value as values. |
object |
Core Releases
v14.0.4 This block was introduced inv14.0.4, click here to see the release notes.
Back to
array
Return to the main group to view all sub-groups
Back to array
Return to the group to view all blocks within this group