time-to-botec/squiggle/node_modules/@stdlib/utils/property-descriptors-in/docs/repl.txt

28 lines
580 B
Plaintext
Raw Normal View History

{{alias}}( value )
Returns an object's own and inherited property descriptors.
If provided `null` or `undefined`, the function returns an empty object.
Parameters
----------
value: any
Input value.
Returns
-------
desc: Object
An object's own and inherited property descriptors.
Examples
--------
> function Foo() { this.beep = 'boop'; return this; };
> Foo.prototype.foo = 'bar';
> var obj = new Foo();
> var desc = {{alias}}( obj )
{ 'beep': {...}, 'foo': {...}, ... }
See Also
--------