Lodash.attempt

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

struct Lodash
nothrow @trusted @safe ref
attempt
(
ARGS...
)
(
auto ref ARGS args
)

Return Value

Type: auto ref

- Lodash chained on (*): the func result or error object.

Meta