The opposite of _.pickBy; this method creates an object composed of the own and inherited enumerable properties of object that predicate doesn't return truthy for.
_.pickBy
object
predicate
The source object.
Optional
The function invoked per property.
Returns the new object.
var object = { 'a': 1, 'b': '2', 'c': 3 };_.omitBy(object, _.isNumber);// => { 'b': '2' } Copy
var object = { 'a': 1, 'b': '2', 'c': 3 };_.omitBy(object, _.isNumber);// => { 'b': '2' }
_.omitBy
The opposite of
_.pickBy
; this method creates an object composed of the own and inherited enumerable properties ofobject
thatpredicate
doesn't return truthy for.