how to create an array of objects taking two values from an array of objects javascript code example
Example: js objects in array
let car = cars.find(car => car.color === "red");
let car = cars.find(car => car.color === "red");