invoke

Object
since 4.0.0

Returns

* the result of the invoked method.

Invokes the method at path of object.

Example of Lodash _.invoke

var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };

_.invoke(object, 'a[0].b.c.slice', 1, 3);
// => [2, 3]