src/lib/metrics.js
// Return data in [start, end[ for each step
Return data in [start, end[ for each step
Return data in [ start end [ for each step
function filterAndAggregate(data, start, end, step) {
  step = step || 1;
  const f = filter(start, end);
  if (f) {
    data = data.filter(f);
  }
  return aggregate(data, start, end, step);
}
function filterAndAggregate ( data , start , end , step ) { step = step || 1 ; const f = filter ( start , end ) ; if ( f ) { data = data . filter ( f ) ; } return aggregate ( data , start , end , step ) ; }
Return data in [start, end[ for each step
Return data in [ start end [ for each step