[removed] is the arguments array deprecated?

后端 未结 4 2062
-上瘾入骨i
-上瘾入骨i 2020-12-15 04:28

Most sites say \"callee\" as a property of Function.arguments is deprecated. But some sites go further and say the whole of Functions.argument is deprecated E.g. http://apta

4条回答
  •  -上瘾入骨i
    2020-12-15 04:50

    Function.arguments is deprecated, but it's only deprecated in favor of the vanilla arguments object that's available within a function. (e.g. using x = arguments[i]; instead of x = theFunc.arguments[i];)

    That's now the preferred (and as you say, extremely useful) method for accessing the ordinal arguments received.

提交回复
热议问题