You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first reduce calculates the sum of the elements of the array, and the second calculates the array's length (got from jwadhams/json-logic#4 (comment))
Since this isn't a language built-in in JavaScript, I'm a little hesitant to make it one in json-logic -- especially because letting users roll their own lets you decide how you want to handle zero-length arrays, non-numeric items, etc etc etc.
It would be nice to have an ability to write a rule like 'if the average of values is > 15'
The text was updated successfully, but these errors were encountered: