function a() {
console.log(arguments);
}
a(1,2,3,undefined);
/*
Arguments(4)
0: 1
1: 2
2: 3
3: undefined
callee: ? a()
length: 4
Symbol(Symbol.iterator): ? values()
__proto__: Object
*/
arguments是函数的一个内置属性,他是一个类似于数组的对象,有length这个属性。
箭头函数中没有arguments
原文:https://www.cnblogs.com/wangshouren/p/11615860.html