Util
Attempt

_.attempt(func, [args])

Attempts to invoke func, returning either the result or the caught error object. Any additional arguments are provided to func when it's invoked.

Arguments

func (Function): The function to attempt.
[args] (...*): The arguments to invoke func with.

Returns

(*): Returns the func result or error object.

Example

Deep