Category : arrayobject

Ive got some array of object I want to merge array of object with the same key and create it as new object based on the key and value const data =[{ date:"19", status:"in", hour:”12:00” },{ date:"19", status:"in", hour:”12:20” },{ date:"19", status:"in", hour:”12:43” },{ date:"19", status:"out", hour:”16:16” },{ date:"20", status:"in", hour:07:30” },{ date:"20", status:"out", hour:”14:40” ..

Read more

I have an array of objects. let mainMenu = [ { brand: "Zara", type: "Shirt", gender: ["Men", "Women", "Boys", "Girls"], size: "Small", image: "", description: "", price: "300", colour: "Red", stock: "10", discount: 5, rating: "4" }, { brand: "Nike", type: "Shirt", gender: ["Men", "Women", "Boys"], size: "Medium", image: "", description: "", price: "600", colour: ..

Read more