time-to-botec/js/node_modules/@stdlib/utils/property-descriptor-in/docs/repl.txt

30 lines
545 B
Plaintext
Raw Permalink Normal View History

{{alias}}( value, property )
Returns a property descriptor for an object's own or inherited 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
--------