Javascript: how to check empty object in an array?
<p>I am getting an array of objects from my JSON response. Sometimes I am getting an array of length 1 with an empty object. How do I check that condition?</p>

<pre><code>I tried with a few things-

  myarray[0]=='empty' || myarray[0] == 'undefined'
  or myarray.indexOf(0)== -1
</code></pre>

<p>But didn't solved the problem</p>