Story

Abuse of the nullish coalescing operator in JS/TS

fred_ Friday, November 21, 2025
Summary
The article discusses the concept of nullish coalescing in JavaScript and TypeScript, which is a way to handle null or undefined values by providing a default value when the operand is nullish (null or undefined). It explains the benefits of using nullish coalescing over traditional techniques like logical OR (||) and compares its usage in both JavaScript and TypeScript.
30 38
Summary
fredrikmalmo.com
Visit article Read on Hacker News Comments 38