var items = { { id:1, name: "Laptop" price : 100000 },{ id : 2, name: "Mouse", price: 50000, } ] console.log(items[0].id === '1')