Is there any way to make an object return false in javascript?
var obj = new Object(); console.log(!!obj) // prints \"true\" even if it\'s empty
No.
Not sure why you'd want this, but there is a way you could do something like this but it's kinda hacky...
var obj = { toString: function() { return ''; } }; alert(!! (''+obj));