DEV Community

Discussion on: 🔥 Getting the largest number from an array

Collapse
 
vonheikemen profile image
Heiker

It looks like this works, too.

Math.max.apply(null, [69, 420, 108, 47]);
// => 420
Enter fullscreen mode Exit fullscreen mode