Nowadays you can simply use the spread operator with its Rest way:
const { key, ...profilesWithoutKey } = profiles;
Credit to this blog post
Nowadays you can simply use the spread operator with its Rest way:
const { key, ...profilesWithoutKey } = profiles;
Credit to this blog post