Strict Mode Issue with Binding Arguments
Asked Answered
H

1

7

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]
  }
Horsemint answered 7/2, 2022 at 18:56 Comment(0)
B
7

arguments is a special variable.

Use a different name.

function (...args) {
Bryozoan answered 7/2, 2022 at 18:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.