The type of the object from which keys will be removed.
The keys of the object to be removed.
A new object with the specified keys removed.
const original = { a: 1, b: 2, c: 3 };
const result = removeObjectKeys(original, ['b', 'c']);
console.log(result); // { a: 1 }
const user = { name: 'Alice', age: 25, country: 'USA' };
const updatedUser = removeObjectKeys(user, ['age']);
console.log(updatedUser); // { name: 'Alice', country: 'USA' }
Creates a new object by removing specified keys from the original object. This function avoids mutating the original object by creating a shallow copy.