I have a function that takes a variable number of parameters and I have those parameters in an array. The function doesn't take the array as a parameter. What I want to do is destructure the array into the arguments of the function call. I am not sure how long the array is but I know it will be more than 3.
var array = ['a', 'b', 'c', 'd', ...etc]
doit(arr[0], arr[1], arr[2], ...etc)
function doit( a, b, ...c){
//do stuff
}