Checking if object contains X in jQuery / ajax – Jquery ajax
How would I go about checking if a Object returned by a API contains X? This is the closest I have gotten, without getting any errors: $.ajax(settings).done(function (response) { var email_response = {response}; if (Object.values((JSON.stringify(email_response))).indexOf('"response"') > -1) { console.log('Is valid');…