DEV Community

Discussion on: 😰 Optional chaining trap !

Collapse
 
woubuc profile image
Wouter

I know the Javascript engine can do a lot, but I find it hard to believe that it could optimise a while-loop with object assignments (like the lodash.get function) to be as performant as foo === null checks.