function myFunction(x, y, z) { }
var args = [0, 1, 2];
myFunction(...args);
The spread syntax allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) or multiple variables are expected. Just like the rest parameters simply preface your array with ...