DEV Community

Discussion on: Unhealthy Code: Null Checks Everywhere!

Collapse
 
pencillr profile image
Richard Lenkovits

This came as divine intervention. I'm currently struggling with a null check hell case because of some inconsistently structured api data, and I was thinking about what would be the clean way to deal with it. Then this article came up. Thanks! :)

Collapse
 
jamesmh profile image
James Hickey

Sweet! The book covers the special case pattern also.

Collapse
 
ifarmgolems profile image
Patrik Jajcay

If you're using JS, take a look at lodash.com/docs/#get