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
What about doing like this.
JSON.stringify({}) === "{}"