2 ms·
Maybe it is outdated practice but I still use == operator for null or undefined check. if (value == null)
by max23_ 1y ago
Maybe it is outdated practice but I still use == operator for null or undefined check.
if (value == null)
- jeeyoungk 1y agoyes `== 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.