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.
Table of contents
Code Smell 149 — Optional ChainingProblemsSolutionsContextSample CodeDetectionTagsConclusionRelationsMore InfoCredits11 Comments