The opposite of [[pick]];
this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.
5.18.0
const object = { 'a': 1, 'b': '2', 'c': 3 };omit(object, ['a', 'c']);// => { 'b': '2' } Copy
const object = { 'a': 1, 'b': '2', 'c': 3 };omit(object, ['a', 'c']);// => { 'b': '2' }
The opposite of [[pick]];
this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.