4 ms·
Coercing nullishness/undefined-ness to false arises from languages like C. It is an unfortunate footgun, but not what most people think of when they think of Ja
by rezonant 3y ago
Coercing nullishness/undefined-ness to false arises from languages like C. It is an unfortunate footgun, but not what most people think of when they think of Javascript's coercion weirdnesses.
Typescript supports this because it is a strict superset of Javascript.
They certainly could have made TS strict mode complain about it though.