Prism · Sugar
$avg
The mean of the numbers of a list. Shorthand for the $sum divided by the $count.
{ scores: [80, 90, 100, 70] }{ $avg: { over: { $ref: '$.scores' } } }85
Runs in this page on the installed package. The input and the expected output are defined by the example.