Util
Method

_.method(path, [args])

Creates a function that invokes the method at path of a given object. Any additional arguments are provided to the invoked method.

Arguments

path (Array|string): The path of the method to invoke.
[args] (...*): The arguments to invoke the method with.

Returns

(Function): Returns the new invoker function.

Example

Deep

Last updated on February 22, 2024