true if the length and the item at every index is equals to the array's ones
auto inventory = new Inventory(Slot(null), Slot(new Items.Apple())); assert(inventory == [Slot(null), Slot(new Items.Apple())]); assert(inventory != [Slot(null), Slot(new Items.Apple(), 12)]); assert(inventory != [Slot(null), Slot(new Items.Apple("{\"customName\":\"test\"}"))]);
Compares the inventory with an array of slots.