@stdlib/utils
Version:
Standard utilities.
26 lines (18 loc) • 425 B
Plain Text
{{alias}}( value )
Returns an object's own property descriptors.
If provided `null` or `undefined`, the function returns an empty object.
Parameters
----------
value: any
Input value.
Returns
-------
desc: Object
Property descriptors.
Examples
--------
> var obj = { 'a': 'b' };
> var desc = {{alias}}( obj )
{ 'a': {...} }
See Also
--------