0

I'm using Node.js 14.15.1 in VS Code and it is showing an error when I'm trying to use the optional chaining operator. I am not using any other dependency apart from Express. The line of code is fairly simple.

if(something.includes(String(anotherThing.value)?.trim())) {
 // do something
}

Can you shed some light on a possible workaround?

awesomemypro
  • 531
  • 1
  • 11
  • 32

0 Answers0