repl.txt (499B)
1 2 {{alias}}( obj ) 3 Converts each object key to uppercase. 4 5 The function only transforms own properties. Hence, the function does not 6 transform inherited properties. 7 8 The function shallow copies key values. 9 10 Parameters 11 ---------- 12 obj: Object 13 Source object. 14 15 Returns 16 ------- 17 out: Object 18 New object. 19 20 Examples 21 -------- 22 > var obj = { 'a': 1, 'b': 2 }; 23 > var out = {{alias}}( obj ) 24 { 'A': 1, 'B': 2 } 25 26 See Also 27 -------- 28