Skip to content
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

Merged
merged 3 commits into from
Feb 19, 2019

Conversation

Yash-Handa
Copy link
Contributor

@Yash-Handa Yash-Handa commented Feb 16, 2019

Hey @chowdhurian and @fhemberger,
In accordance with issue #1977, I have updated the Article what-is-the-arguments-object with the following changes:

  • Added details about arrow function exception and its workaround (rest parameter)
  • Added Array.from() method usage.
  • Added better syntax high lighting.
  • some other miscellaneous updates and refactors.

If there are any suggestion/enhancement/tips please feel free to tell me, I would love to incorporate those changes in this Article 😄

}
```js
const myfunc = function(one) {
arguments.callee === myfunc;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

args.push(arguments[i]);
}

// for ES6 and above
Copy link
Contributor

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?

Copy link
Contributor Author

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.
@fhemberger fhemberger merged commit 0dd5577 into nodejs:master Feb 19, 2019
@fhemberger
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants