Prism · Sugar

$max

The largest number of a list. Shorthand for a $reduce that keeps the larger of two.

The source
{ scores: [42, 67, 89, 33, 95, 78] }
The config
{ $max: { over: { $ref: '$.scores' } } }
What comes out
95
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.