I have this code for a class where I\'m supposed to use the reduce() method to find the min and max values in an array. However, we are required to use only a single call to
In ES6 you can use spread operator. One string solution:
Math.min(...items)