Avoid Nulls and undefined. If you avoid them you will never need Optionals or Coalescence. Nullish Values, Truthy and Falsy are also code smells. The good: remove all nulls from your code. The bad: use optional chaining. The ugly : not treating nulls at all.

2m read timeFrom levelup.gitconnected.com
Post cover image
Table of contents
Code Smell 149 — Optional ChainingProblemsSolutionsContextSample CodeDetectionTagsConclusionRelationsMore InfoCredits
11 Comments