Mutates an object or array by removing specified properties or indices. If no keys are provided, it removes all properties (like a clear operation).
The object or array to mutate
The mutated object reference
omit({ a: 1, b: 2 }, 'a'); // { b: 2 } Copy
omit({ a: 1, b: 2 }, 'a'); // { b: 2 }
The keys or indices to omit
Mutates an object or array by removing specified properties or indices. If no keys are provided, it removes all properties (like a clear operation).