DEV Community

Discussion on: I do this all the time to reduce bugs in my javascript code #1

Collapse
 
dyllandry profile image
Dylan Landry • Edited

That's pretty smart. It reminds me of the style vs readability balancing act. And I wonder how often this would come in handy. It would be nice in TypeScript where accessing any possible null types can throw linting errors. I'll use this next time I run into a similar problem. Thanks for sharing!