@allynet/ishod
    Preparing search index...

    Function isErr

    • Used to check if a result is an Err.

      Type Parameters

      • T
      • E

      Parameters

      Returns result is Err<E>

      const result: Result<number, string> = err("error");
      const isErrResult: boolean = isErr(result); // true
      if (isErr(result)) {
      // We now know that the result is an Err
      // so we can safely use it
      const error: string = unwrapErr(result); // "error"
      }