The
_.propertyOf() function is the inverse of _.property() function. This function takes an object as an argument and returns a function that will return the value of a provided property.
Syntax:
_.propertyOf( object )
Parameters: This function accepts one parameter as mentioned above and described below:
- object: This parameter holds the value of object that function need to be return.
Return Value: It returns the property of an object.
Example 1:
Output:
👁 Image
Example 2: