repl.txt (514B)
1 2 {{alias}}( obj, keys ) 3 Returns a partial object copy containing only specified keys. 4 5 If a key does not exist as an own property in a source object, the key is 6 ignored. 7 8 Parameters 9 ---------- 10 obj: Object 11 Source object. 12 13 keys: string|Array<string> 14 Keys to copy. 15 16 Returns 17 ------- 18 out: Object 19 New object. 20 21 Examples 22 -------- 23 > var obj1 = { 'a': 1, 'b': 2 }; 24 > var obj2 = {{alias}}( obj1, 'b' ) 25 { 'b': 2 } 26 27 See Also 28 -------- 29