VOOZH about

URL: https://www.geeksforgeeks.org/javascript/underscore-js-_-propertyof-function/

⇱ Underscore.js _.propertyOf() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Underscore.js _.propertyOf() Function

Last Updated : 1 Aug, 2023
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:
Output: 👁 Image
Comment