time-to-botec/js/node_modules/@stdlib/utils/inherited-property-descriptors/docs/repl.txt

31 lines
616 B
Plaintext
Raw Permalink Normal View History

{{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
--------