0

I'm learning JavaScript by following the book series "You don't know JS".

In the section about spread operator ..., the author mentioned

enter image description here

I have looked at the MDN page on "arguments" and did a search on the keyword depre, but nothing in the page mentions that the arguments is deprecated.

Am I missing something?

3
  • 1
    stackoverflow.com/a/8121309/7974050 Commented Sep 8, 2017 at 4:58
  • 1
    There's nothing deprecated about arguments. You might want to file an issue at the Github repo. Commented Sep 8, 2017 at 5:14
  • I think someone is possibly confused by strict mode ... maybe Commented Sep 8, 2017 at 5:24

1 Answer 1

1

MDN page on Deprecated and obsolete features in Function properties section says: "The caller and arguments properties are deprecated, because they leak the function caller. Instead of the arguments property, you should use the arguments object inside function closures."

A agreed with @Bergi, you may start an issue on the GitHub to clarify this place.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.