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 am I missing if empty array... keyless object... falseness const isEmpty = o => Array.isArray(o) && !o.join('').length || typeof o === 'object' && !Object.keys(o).length || !(+value);