How to check for {} value in JavaScript?

jarod

New Member
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 {}. \[code\] currentRow = document.createElement("TR"); if(currentRow.cells.length > 0) { .. do something }\[/code\]UPDATE 1: All I want is to check for empty object. if the currentRow.cells is an empty object then do nothing.
 
Top