Checks whether an iterated property passes a test.
Checks whether an iterated value passes a test.
Checks whether an iterated property passes a test.
Returns a partial object copy excluding properties for which a predicate returns a truthy value.
source object
predicate function
new object
function predicate( key, value ) {
return ( value > 1 );
}
var obj1 = {
'a': 1,
'b': 2
};
var obj2 = omitBy( obj1, predicate );
// returns { 'a': 1 }
Checks whether an iterated property passes a test.
iteration key
property value
boolean indicating whether an iterated property passes a test