Check if struct is empty: Javascript
<p>I have a list of items showing up on a page, using a struct. If a customer doesn't choose on of those items, I want to check if the struct is empty or not.</p>

<p>Here is my code:</p>

<pre><code>shopItems.shopItemsStruct = {};
</code></pre>

<p>so when I do <code>console.log(shopItems.shopItemsStruct)</code> when I don't select a item, it shows me <code>Object { }</code>. How do I check in an if statement (ie if shop items are not selected)?</p>

<p>Thanks.</p>