detect an undefined item in jQuery
<p>How do you detect an undefined item in jQuery in an 'if statement' I have tried something like below without any success so far.</p>

<pre><code> success: function(data){

  if(typeof data.DATA[0].RECIPIENTID = 'undefined'){
     // do nothing                          
   }
   else {
       //else get value
       console.log(data.DATA[0].RECIPIENTID);                       
   }


 console.log(data);

 }
});
</code></pre>
