I've notice the expression
(a !== a && b !== b)
compare = function(a, b) { return a === b || (a !== a && b !== b); };
Isn't the expression always resolve to false? what is the reason to write something like this?
I've notice the expression
(a !== a && b !== b)
compare = function(a, b) { return a === b || (a !== a && b !== b); };
Isn't the expression always resolve to false? what is the reason to write something like this?