javascript array spread operator beggining and end code example
Example 1: spread operator es6
[...fruits]
Example 2: es6 spread
const numbers = [43, 3, 11, 54];
const max = Math.max(...numbers); // Spreads numbers as parameters
// max is 54
[...fruits]
const numbers = [43, 3, 11, 54];
const max = Math.max(...numbers); // Spreads numbers as parameters
// max is 54