I looked some time but to my surprise haven't found any answer to specifically this.
I would like to check if values have changed in our data set tool. For this i would like to use loose comparison so that equivalent numbers converted to string (just an example) are not detected changed:
42 != "42" // -> false
However, for obvious reasons, i would like that falsey comparisons are compared strictly, except when they are equivalent for example:
'' != 0 // -> false, i'd like true
'0' != 0 // -> false, and that's OK
null != false // -> true, and that's OK
undefined != null // -> false, but should be true (this case is not the priority)
Is there an efficient way to do that without listing all the cases manually?