Lodash _.methodOf() Method
The Lodash _.methodOf() method creates a function that invokes the method at a given path of the object. Any additional arguments are provided to the invoked method.
Parameters: This method accepts two parameters as mentioned above and described below:
- object: This is the object to query.
- args: These are the arguments to invoke the method with.
Return Value: This method returns the new invoker function.