-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Update what-is-the-arguments-object.md #2085
Conversation
fixed a semi-colon (;)
} | ||
```js | ||
const myfunc = function(one) { | ||
arguments.callee === myfunc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arguments.callee
has been deprecated in ES5 strict mode:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee
args.push(arguments[i]); | ||
} | ||
|
||
// for ES6 and above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should push this as the default for current Node.js versions (and only mention the pre-ES6 variants briefly). What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @fhemberger for the advice will update both the sections :)
Updated the 2 sections, about callee property and for loop.
Thanks! |
Hey @chowdhurian and @fhemberger,
In accordance with issue #1977, I have updated the Article what-is-the-arguments-object with the following changes:
arrow function
exception and its workaround (rest parameter
)Array.from()
method usage.If there are any suggestion/enhancement/tips please feel free to tell me, I would love to incorporate those changes in this Article 😄