DEV Community

Discussion on: Everything new coming in ES2021

 
albertomontalesi profile image
AlbertoM

Yep, i did it

Thread Thread
 
redbar0n profile image
Magne

Regression error:

e ?? =f will return f if it's null or undefined otherwise it will return e

(notice the incorrect "??=" sign, and that "it's" should not refer back to f)

Should be:

e ??= f will return f if e is null or undefined otherwise it will return e

Thread Thread
 
albertomontalesi profile image
AlbertoM

Whoops, you are right, i rush to fix and made another mistake ahha thanks