@mikuroxina/mini-fn
    Preparing search index...

    Function alt

    • Picks the first successful computation. It will try first at first, but if first throws an error, it discards the error and uses second.

      Type Parameters

      • T

      Parameters

      • first: Promise<T>

        The first attempt.

      Returns (second: Promise<T>) => Promise<T>

      The first successful computation.