Strict Mode Issue with Binding Arguments

Viewed 336

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]
  }
1 Answers

arguments is a special variable.

Use a different name.

function (...args) {
Related