将arguments变成数组

2017/05/03
function a(a, b, c) {
  let arr = Array.prototype.slice.call(arguments)
  console.log(arr)
}

a(1,2,3)

  function f(num) {
        if(num == 1 || num == 2){
            return 1
        }else {
            return arguments.callee(num-1) + arguments.callee(num-2)
        }
    }
    console.log(f(4))