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