You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes and no. Yes, one could use "other" here, of course. But that's no the point. The "var other ..." line is not there for the following line, but illustrates the spread operator just fine for itself in a stand-alone way. So, no, I will not reuse other as the "f.apply ...." line is a different usage of the spread operator and should be understood separately. Instead, I've now copied over the "f" definition from the Rest Operator example and added a blank line to make it more clear that the two Spread Operator examples are unrelated to each other.
The following ECMAScript 5 sample has an unused variable.
The previously mentioned code should be changed to the following.
The text was updated successfully, but these errors were encountered: