Using reduce() to find min and max values?

In ES6 you can use spread operator. One string solution:

 Math.min(...items)

Leave a Comment