Re:On JavaScript's Weirdness
by jeeyoungk on Friday April 04, 2025 @11:59AM
(#43584305)
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.
In general, the whole `==` versus `===` is a silly argument in a typescript codebase, because if you know the types of the arguments, `==` behaves predictably.