@wallhackio Why would you ever write any of the above two options instead of if (!x)? Asking as a C programmer. Are there any situations where these do different things?
@vaporeon_ there are non-nullish values that are coerced to false. or x could be false itself. That means the following values would also be treated as nullish:
false""0-00nNaN
@wallhackio @vaporeon_ or if you lint your js with typescript, the only actually good use fur typescript
@wallhackio @vaporeon_ fuck the typescript compiler i just wanna run my actual js directly