Const
Groups rows by a field and produces both a flat grouped representation and a two-level hierarchy (root → group children).
groupBy is a factory: call it, then use the returned transform. Options passed at transform time override the factory arguments.
groupBy
Optional
const out = groupBy('category').transform(data); Copy
const out = groupBy('category').transform(data);
Groups rows by a field and produces both a flat grouped representation and a two-level hierarchy (root → group children).
groupByis a factory: call it, then use the returned transform. Options passed at transform time override the factory arguments.