Course · Section 11: Working With Arrays · Lecture 160: The reduce Method
Implement `summaryStats(nums)` returning `{ min, max, avg }` for a non-empty array of numbers.
+ 1 hidden test run on Submit.
Derive the summary in one pass: Math.min/max for the bounds and a reduce-based mean, returned together as { min, max, avg }.
Run your code to see results.