Explore the code snippet provided below:
const a={type:"apple"};
const b={type:"banana", color:"yellow"};
const c = Object.assign(a,b); //result: c={type:"banana", color:"yellow"}
//desired outcome: {type:"banana"}
What modifications can be made to reach the desired output?