1. call方法
let args = {0: 0,1: 1,2: 2,3: 3,length: 4}let res = Array.prototype.slice.call(args)console.log(res);
2. Array.from方法
let res = Array.from(args)
3. 通过call调用splice方法
let res = Array.prototype.splice.call(args, 0);
4. 通过apply调用数组的concat方法
let res = Array.prototype.concat.apply([], args)
