groupBy(): minor refactor

This commit is contained in:
Alexander Zobnin
2017-07-28 12:37:28 +03:00
parent 1899d32152
commit e626ce4ca2
4 changed files with 29 additions and 21 deletions

View File

@@ -83,6 +83,10 @@ System.register(['lodash', './utils'], function (_export, _context) {
}
function groupBy_perf(datapoints, interval, groupByCallback) {
if (datapoints.length === 0) {
return [];
}
var ms_interval = utils.parseInterval(interval);
var grouped_series = [];
var frame_values = [];

File diff suppressed because one or more lines are too long