#Array-to-parameter-list conversion
##During a recent mock technical interview, I was asked to find the largest of a series of numbers stored in an array. The first solution I hit upon was to feed all the array members to Math.max(), but I just couldn't figure out how to do it, and I ended up taking another approach. When the interview was over, the interviewer gave me two ways I could've made my original idea work.
###(1) Use apply()
const numberArray = [12, 45, 0, 7];
return Math.max.apply( null, numberArray ); // 45
###(2) Use the new spread operator
const numberArray = [12, 45, 0, 7];
return Math.max( ...numberArray ); // 45