What are the falsy values in TypeScript and JavaScript?
Originally Published Here ๐!
Falsy values are those values that get coerced to the boolean type false in TypeScript and JavaScript.
These are the following falsy values in TypeScript and JavaScript:
0
false
NaN
"" (empty string)
0n (bigint version ...
melvingeorge-me.hashnode.dev3 min read