Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/eitherway/lib/async/operators.ts>mapOr

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
function mapOr
Deprecated
Deprecated

(will be removed in 1.0.0) use Task instead

import { mapOr } from "https://deno.land/x/eitherway@0.10.0/lib/async/operators.ts";

Parameters

mapFn: (v: T) => T2 | PromiseLike<T2>
orValue: T2 | PromiseLike<T2>