Convert javascript function arguements into a single array

Convert javascript function arguements into a single array
0.0 0

#1

function destroyer(arr){

}

destroyer([1,2,3], 2, 3, 5);

how to convert these arguments into a single function?


#2

I got it over the internet.

var args = Array.prototype.slice.call(arguments);