Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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]
  }
like image 866
Hey Avatar asked Jun 24 '26 03:06

Hey


1 Answers

arguments is a special variable.

Use a different name.

function (...args) {
like image 77
Quentin Avatar answered Jun 26 '26 16:06

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!