ESCalc - v0.0.1-beta.2
    Preparing search index...

    Function formatSafe

    • The same as format but returns a discriminated union instead of throwing.

      Parameters

      Returns { result: string; type: "success" } | { error: ESCalcError; type: "error" }

      { type: 'success', result } on success, or { type: 'error', error } on failure.