31 lines
616 B
Plaintext
31 lines
616 B
Plaintext
|
|
{{alias}}( value[, level] )
|
|
Returns an object's inherited property descriptors.
|
|
|
|
If provided `null` or `undefined`, the function returns an empty object.
|
|
|
|
Parameters
|
|
----------
|
|
value: any
|
|
Input value.
|
|
|
|
level: integer (optional)
|
|
Inheritance level.
|
|
|
|
Returns
|
|
-------
|
|
desc: Object
|
|
An object's inherited property descriptors.
|
|
|
|
Examples
|
|
--------
|
|
> function Foo() { this.beep = 'boop'; return this; };
|
|
> Foo.prototype.foo = 'bar';
|
|
> var obj = new Foo();
|
|
> var desc = {{alias}}( obj )
|
|
{ 'foo': {...}, ... }
|
|
|
|
See Also
|
|
--------
|
|
|