JS mengecualikan dari objek
function omit(key, obj) {
const { [key]: omitted, ...rest } = obj;
return rest;
}
Vinox Dev
function omit(key, obj) {
const { [key]: omitted, ...rest } = obj;
return rest;
}