@stdlib/utils
Version:
Standard utilities.
30 lines (21 loc) • 532 B
Plain Text
{{alias}}( value, property )
Returns a property descriptor for an object's own property.
If provided `null` or `undefined` or provided a non-existent property, the
function returns `null`.
Parameters
----------
value: any
Input value.
property: string|symbol
Property name.
Returns
-------
desc: Object|null
Property descriptor.
Examples
--------
> var obj = { 'a': 'b' };
> var desc = {{alias}}( obj, 'a' )
{...}
See Also
--------