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

    Type Parameters

    • TResult

    Parameters

    • func: ((...args) => TResult)

      The function to attempt.

        • (...args): TResult
        • Parameters

          • Rest ...args: any[]

          Returns TResult

    • Rest ...args: any[]

    Returns Error | TResult

    Returns the func result or error object.

Generated using TypeDoc