Hello I have an object:
var equippedItems = {
weapon: {},
armor: {},
accessory: {}
};
I need a way to check if equippedItems.weapon equals to '' at some point I am doing something like equippedItems.weapon = ''; I dont know if it's exactly the same as above object. I already tried using object.hasOwnProperty but it seems I cannot use equippedItems.weapon in this case, maybe I am doing something wrong? Also note I did read how to check if object is empty already, but it didn't work for my object inside an object.
@Edit:
Like I said, I already read those and they did not give me a straight answer for my question, they did answer how to check if object is empty, but the object was like object = {}; while mine is like
object = {
object:{}, 
object2:{}, 
object3:{}};
Thats why it confuses me.
 
     
    