I am trying to convert the following arrow function to regular;
const hasLargerCapacity= (color1, color2)=>{ let obj1=cars.filter(item=>item.color===col