TypeScript·Intermediate·Conceptual·1 min read
Why is truthiness narrowing sometimes dangerous?
Short interview answer
It can remove valid falsy values such as an empty string or zero. Use an explicit nullish or domain check when those values are meaningful.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.