30 lines
545 B
Plaintext
30 lines
545 B
Plaintext
|
|
||
|
{{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
|
||
|
--------
|
||
|
|