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

Function groupFor

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

Source from the content-addressed store, hash-verified

2450 const sourceSeries = new Map();
2451 const sampleSeries = new Map();
2452 const groupFor = row => seriesIndexes.map(index => String(row[index] ?? ''));
2453 const keyFor = (row, measure) => JSON.stringify([...groupFor(row), measure]);
2454 rows.forEach((row, rowIndex) => {
2455 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