No.
var i = (function() { return; })();
i === undefined , which means that i == false && i == '' && i == null && i == 0 && !i
var j = (function() { return false; })();
j === false , which means that j == false && j == '' && j == null && j == 0 && !j
Weak statements in JS make it seem like they can return the same thing, but return objects of different types.
Bob Fincheimer Apr 08 2018-11-11T00: 00Z
source share