Lodash _.accessor() Method
The Lodash _.accessor() method returns a function that will attempt to look up a given field in the given object.
_.accessor( field_name );
Parameters: This method takes single parameter as mentioned above and described below:
- field_name: This method takes the field to be searched in the given object.
Return Value: This method returns a function that will attempt to look up a given field in the given object.