Omits the key-value pairs corresponding to the given keys from an object; or Creates an object composed of the properties the given function returns falsey for. The function is invoked with two arguments: (value, key)
omit({ a: 1, b: '2', c: 3 }, ['b']); // { a: 1, c: 3 }
omit({ a: 1, b: '2', c: 3 }, (x) => typeof x === 'number'); // { b: '2' }
Generated using TypeDoc
Omits the key-value pairs corresponding to the given keys from an object; or Creates an object composed of the properties the given function returns falsey for. The function is invoked with two arguments: (value, key)
Example
Example