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.
Here is my code:
shopItems.shopItemsStruct = {};
so when I do console.log(shopItems.shopItemsStruct) when I don't select a item, it shows me Object { }. How do I check in an if statement (ie if shop items are not selected)?
Thanks.
 
     
     
     
    