Hacker News new | ask | show | jobs
by max23_ 439 days ago
Maybe it is outdated practice but I still use == operator for null or undefined check.

  if (value == null)
1 comments

yes `== null` is quite convenient for the null or undefined check.

In general, the whole `==` versus `===` is a silly argument in a typescript codebase, because if you know the types of the arguments, `==` behaves predictably.