UNPKG
slog
Version:
latest (0.1.0)
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Log parser with configurable column processors.
slog
/
processors
/
sum.reducer.js
11 lines
(9 loc)
•
196 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// On first run output will be undefined
//
if
(output ===
void
0
) { output =
0
; }
// Reduce all the worker results (a count of column values) by adding them.
//
output += +input;
return
output;