DEV Community

Discussion on: Alternative to the spread operator

 
rhymes profile image
rhymes

Yes:

const newFood = { ...food, ...moreFood };