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 containing 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 = pickBy( obj1, predicate );
// returns { 'b': 2 }
Checks whether an iterated property passes a test.
iteration key
property value
boolean indicating whether an iterated property passes a test