Other than creating a function, is there a shorter way to check if a value is undefined,null or false only in JavaScript?
undefined
null
false
Using ? is much cleaner.
var ? function_if_exists() : function_if_doesnt_exist();