Optional
Readonly
Returns a group for values added via addValue. Eg. maybe you want to group values in the shape {name: 'Samantha' city: 'Copenhagen'} by city:
addValue
{name: 'Samantha' city: 'Copenhagen'}
const opts = { groupBy: (v) => v.city} Copy
const opts = { groupBy: (v) => v.city}
Returns a group for values added via
addValue
. Eg. maybe you want to group values in the shape{name: 'Samantha' city: 'Copenhagen'}
by city: