DEV Community

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

Collapse
 
johannesjo profile image
Johannes Millan • Edited

Thank you very much! That's an excellent answer and I agree pretty much with everything you say.

I think much of my particular problems are caused by my data being saved to a document oriented schemaless database (first localStorage and now IndexedDB) and the process of it evolving over time made me lose confidence what's actually in there. Probably makes most sense to solve this problem first and then to revisit the null/undefined problem as you mention.