JS exclui do objeto
function omit(key, obj) {
const { [key]: omitted, ...rest } = obj;
return rest;
}
Vinox Dev
function omit(key, obj) {
const { [key]: omitted, ...rest } = obj;
return rest;
}