Hey
Hey

Reputation: 63

Strict Mode Issue with Binding Arguments

I have an issue with running a test on my files. Would love if someone more experienced could help me out here.

the following code gives me this error:

error Parsing error: Binding arguments in strict mode

return (...arguments) => {
  if (something){
    return [something]
  }

Upvotes: 7

Views: 3498

Answers (1)

Quentin
Quentin

Reputation: 943585

arguments is a special variable.

Use a different name.

function (...args) {

Upvotes: 7

Related Questions