Omits the properties from the source object specified by the keys array and returns a new object without those properties.
The source object to omit properties from.
Spread of keys to omit from the source object.
A new object without the omitted properties.
omit({ a: 1, b: 2, c: 3 }, 'a', 'c')// => { b: 2 } Copy
omit({ a: 1, b: 2, c: 3 }, 'a', 'c')// => { b: 2 }
Omits the properties from the source object specified by the keys array and returns a new object without those properties.