Supprimer la clé de l'OBJ et sauver dans Diff OBJ

const user = { id: 1, name: 'Marcus', group: 'admin' }

const { ['group']: group, ...userWithoutGroup } = user  
console.log(userWithoutGroup)  
// { id: 1, name: 'Marcus' }
Dhanan Chezhiyan