onrails
    Preparing search index...
    • Type-narrowing predicate: returns true when the result is Ok.

      Type Parameters

      • T
      • E

      Parameters

      Returns result is Ok<T, E>

      if (isOk(r)) {
      console.log(r.value); // narrowed to Ok branch
      }