@stdlib/utils
Version:
Standard utilities.
31 lines (22 loc) • 616 B
Plain Text
{{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
--------