5

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]
  }
Hey
  • 43
  • 5

1 Answers1

4

arguments is a special variable.

Use a different name.

function (...args) {
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335