SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest syntax, with the new spread operator:
var arr = [1, 2, 3]; var max = Math.max(...arr);
Source : Mozilla MDN