Convert javascript function arguements into a single array

function destroyer(arr){

}

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

how to convert these arguments into a single function?

I got it over the internet.

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