prop()

Gets the value of a property.

This function is valid in v2.2.0 to v2.12.0. This function has been downloaded 9 times.

Parameters

{Object} obj
Object whose property will be retrieved.
{string=} opt_name Optional
Name of the property to get. If obj[opt_name] references a function it will be called to get the property value.

Returns

{Function|*}
If both obj and opt_name are given, the property obj[opt_name] will be returned. If opt_name is not given a partial function is returned which will await the value of opt_name. If the property to be returned is a function it will be evaluated and the return value will be returned instead.