DEV Community

Discussion on: How do you deal with null vs undefined?

Collapse
 
insidewhy profile image
insidewhy • Edited

I just use undefined for everything unless some API forces me to use null. Having to decide when to use one or the other is just an unnecessary complexity. 90% of the people I work with struggle to have the time to concentrate on refactoring their code to the point where it is clean, I think it's too pedantic to make them think about something as minor as this on top of that.