Object Deconstruction
const { id, ...detail } = song;
Use the rest(...)
operator to extract some keys individually and the rest of the keys in the object
Comments
const { id, ...detail } = song;
Use the rest(...)
operator to extract some keys individually and the rest of the keys in the object