Javascript – Stuck with comparison arrays with objects which has IDs
I have 2 arrays with objects With car brands const brands = [ { id: 1, name: "Mercedes Benz", bodyType: [1, 3] }, { id: 2, name: "Audi", bodyType: [1, 2] }, { id: 3, name: "BMW", bodyType: [3, 4]…