1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
{{alias}}( obj, predicate )
Returns a partial object copy excluding properties for which a predicate
returns a truthy value.
The function returns a shallow copy.
The function only copies own properties. Hence, the function never copies
inherited properties.
Parameters
----------
obj: Object
Source object.
predicate: Function
Predicate function.
Returns
-------
out: Object
New object.
Examples
--------
> function predicate( key, value ) { return ( value > 1 ); };
> var obj1 = { 'a': 1, 'b': 2 };
> var obj2 = {{alias}}( obj1, predicate )
{ 'a': 1 }
See Also
--------
|