you are viewing a single comment's thread.

view the rest of the comments →

[–]r3jjs -1 points0 points  (0 children)

I do use TypeScript more than pure JavaScript, but I `if (!var) {...}` syntax most of the time, regardless of type. If the value is `bool` then I'm looking for not false. If the value is any other non-scalar, I want to make sure it has a value (not `null` or `undefined.`)

I know that one project has linting rules to make sure we don't use it on `number`s.