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?

halfer
  • 19,471
  • 17
  • 87
  • 173
Thor
  • 9,110
  • 14
  • 56
  • 125

1 Answers1

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.

dhilt
  • 15,987
  • 7
  • 58
  • 75