The path of the method to invoke.
Rest
...args: any[]The arguments to invoke the method with.
Returns the new invoker function.
5.11.0
const objects = [
{ 'a': { 'b': () => 2 } },
{ 'a': { 'b': () => 1 } }
]
map(objects, method('a.b'))
// => [2, 1]
map(objects, method(['a', 'b']))
// => [2, 1]
Creates a function that invokes the method at
path
of a given object. Any additional arguments are provided to the invoked method.