Skip to main content
Module

x/result_js/operators/logical.ts

Minimum result type port of Rust
Latest
import * as resultJs from "https://deno.land/x/result_js@2.0.0/operators/logical.ts";

Functions

Returns res if the result is Ok, otherwise returns the Err.

Calls fn if the result is Ok, otherwise returns the Err.

Returns res if the result is Err, otherwise returns the Ok.

Calls fn if the result is Err, otherwise returns the Ok.