MCPcopy Create free account
hub / github.com/Rello/analytics / groupFor

Function groupFor

js/visualization.js:2467–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2465 const sourceSeries = new Map();
2466 const sampleSeries = new Map();
2467 const groupFor = row => seriesIndexes.map(index => String(row[index] ?? ''));
2468 const keyFor = (row, measure) => JSON.stringify([...groupFor(row), measure]);
2469 rows.forEach((row, rowIndex) => {
2470 if (!Array.isArray(row)) return;

Callers 2

keyForFunction · 0.85
visualization.jsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected