借助Es6的Array.from()方法即可
function transform() {
console.log(arguments);
var arr = Array.from(arguments);
console.log(typeof arguments);
// console.log(arr instanceof Array);
console.log(arr.__proto__.constructor == Array);
console.log(arr);
return arr;
}
transform(1, 2, 3, 4, 'dfdf')