Unwraps the value for the result whose type parameters of are same.
The source result.
The contained value.
import { err, mergeOkErr, ok } from "./result.ts";import { assertEquals } from "../deps.ts";assertEquals(mergeOkErr(ok(3)), 3);assertEquals(mergeOkErr(err(4)), 4); Copy
import { err, mergeOkErr, ok } from "./result.ts";import { assertEquals } from "../deps.ts";assertEquals(mergeOkErr(ok(3)), 3);assertEquals(mergeOkErr(err(4)), 4);
Generated using TypeDoc
Unwraps the value for the result whose type parameters of are same.