为什么将JavaScript中的
arguments
值应用于片段方法,如下所示Array.prototype.slice.call(arguments)
会将其转换为数组?如果对数组使用片段,则arguments
不是数组,那么这是如何工作的?当应用slice
到arguments
时,只是一个特例吗?