repl.txt (738B)
1 2 {{alias}}( obj ) 3 Returns an array of an object's own and inherited enumerable property 4 values. 5 6 Value 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: ObjectLike 14 Input object. 15 16 Returns 17 ------- 18 values: Array 19 Value array. 20 21 Examples 22 -------- 23 > function Foo() { this.beep = 'boop'; return this; }; 24 > Foo.prototype.foo = 'bar'; 25 > var obj = new Foo(); 26 > var values = {{alias}}( obj ) 27 e.g., [ 'boop', 'bar' ] 28 29 See Also 30 -------- 31