repl.txt (776B)
1 2 {{alias}}( obj ) 3 Returns an array of an object's own and inherited enumerable property 4 names. 5 6 Name order is not guaranteed, as object key enumeration is not specified 7 according to the ECMAScript specification. In practice, however, most 8 engines use insertion order to sort an object's keys, thus allowing for 9 deterministic extraction. 10 11 Parameters 12 ---------- 13 obj: any 14 Input value. 15 16 Returns 17 ------- 18 keys: Array 19 List of an object's own and inherited enumerable property names. 20 21 Examples 22 -------- 23 > function Foo() { this.beep = 'boop'; return this; }; 24 > Foo.prototype.foo = 'bar'; 25 > var obj = new Foo(); 26 > var keys = {{alias}}( obj ) 27 e.g., [ 'beep', 'foo' ] 28 29 See Also 30 -------- 31