How can I check if a variable is empty in Javascript? Sorry for the stupid question, but I\'m a newbie in Javascript!
if(response.photo) is empty { do so
Combining answers from @inkednm into one function:
function isEmpty(property) { return (property === null || property === "" || typeof property === "undefined"); }