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