Setu-TS
    Preparing search index...

    Function unwrap

    • Unwraps a Result, returning the value or throwing the error.

      Prefer narrowing with the success discriminant; reserve unwrap for contexts where failure is a programming error.

      Type Parameters

      • T

        The success value type

      • E

        The error type

      Parameters

      • result: Result<T, E>

        The result to unwrap

      Returns T

      The success value

      The Err error value when the result is a failure

      0.1.0