how to convert arguments to array in javascript code example Example: transform argumentums object into an array var argArray = Array.prototype.slice.call(arguments);