Resolves to a grouping key for a given item. Either the key of a property, or a function that derives the key. Returned values are coerced to strings when used for grouping.
const byCustomer: KeyAccessor<Row> = 'customer';const byRegion: KeyAccessor<Row> = (r) => `${r.country}/${r.state}`; Copy
const byCustomer: KeyAccessor<Row> = 'customer';const byRegion: KeyAccessor<Row> = (r) => `${r.country}/${r.state}`;
Resolves to a grouping key for a given item. Either the key of a property, or a function that derives the key. Returned values are coerced to strings when used for grouping.