How to check for {} value in JavaScript?
<p>For some reason in the code below the currentRow.cells returns {}. How can I check for that? I do not want to execute lines if the currentRow.cells returns {}. </p>

<pre><code> currentRow = document.createElement("TR");
 if(currentRow.cells.length &gt; 0) { .. do something }
</code></pre>

<p>UPDATE 1: </p>

<p>All I want is to check for empty object. if the currentRow.cells is an empty object then do nothing. </p>
