repl.txt (611B)
1 2 {{alias}}( obj, keys ) 3 Returns a partial object copy excluding specified keys. 4 5 The function returns a shallow copy. 6 7 The function ignores non-existent keys. 8 9 The function only copies own properties. Hence, the function never copies 10 inherited properties. 11 12 Parameters 13 ---------- 14 obj: Object 15 Source object. 16 17 keys: string|Array<string> 18 Keys to exclude. 19 20 Returns 21 ------- 22 out: Object 23 New object. 24 25 Examples 26 -------- 27 > var obj1 = { 'a': 1, 'b': 2 }; 28 > var obj2 = {{alias}}( obj1, 'b' ) 29 { 'a': 1 } 30 31 See Also 32 -------- 33