-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
函数的arguments为什么不是数组?如何转化成数组? #139
Comments
为什么BE 本人说法是当时设计 arguments 的时候只花了十天时间整理设计的太糙了, 后来本来也打算改成真的 Array, 但是后来觉得多一事不如少一事又不改了 后来因为 ES 要向后兼容, 如果改动的话牵扯太大(兼容性), 就不改了 直到 ES6 终于对 arguments 提供了一个替代品 - rest parameters: 怎么转化Array.from(arguments)
Array.prototype.slice.call(arguments) 引用https://blog.csdn.net/weixin_30430169/article/details/94832480 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: