orb
orb copied to clipboard
Prevent non-number in aggregate function
I think aggregation on string should not be possible because it leads to weird/unpredictable results:
I have started to work today on a patch that return a blank value when the input data is not a number (using typeof(val) === 'number'
because strings like '012' are also unpredictable)
What do you think? Should I submit a PR?