2016-04-07 8 views

答えて

1

.apply()関数を使用すると、配列を別々の引数に本質的に「分割」できます。

Math.max.apply(Math, some_array); 

あるいは、ES6で:

Math.max(...some_array);