Javascript – Create a new array of multiple objects and array from a given array
I have the following array const CARS = [ {make: "skoda", model: "kodiaq", color: "light-blue", id: "1002", category: "A"}, {make: "skoda", model: "karoq", color: "green", id: "1008", category: "B"}, {make: "renault", model: "clio", color: "grey", id: "1006", category: "A"}, {make:…