repl.txt (616B)
1 2 {{alias}}( value[, level] ) 3 Returns an object's inherited property descriptors. 4 5 If provided `null` or `undefined`, the function returns an empty object. 6 7 Parameters 8 ---------- 9 value: any 10 Input value. 11 12 level: integer (optional) 13 Inheritance level. 14 15 Returns 16 ------- 17 desc: Object 18 An object's inherited property descriptors. 19 20 Examples 21 -------- 22 > function Foo() { this.beep = 'boop'; return this; }; 23 > Foo.prototype.foo = 'bar'; 24 > var obj = new Foo(); 25 > var desc = {{alias}}( obj ) 26 { 'foo': {...}, ... } 27 28 See Also 29 -------- 30