Hapus kunci dari OBJ dan simpan di Diff Obj
const user = { id: 1, name: 'Marcus', group: 'admin' }
const { ['group']: group, ...userWithoutGroup } = user
console.log(userWithoutGroup)
// { id: 1, name: 'Marcus' }
Dhanan Chezhiyan