Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isRight

import { isRight } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/these.ts";

Check if a These is a Right (complete success).

@example
import { isRight, left, right, both } from "./these.ts";

console.log(isRight(left("Error"))); // false
console.log(isRight(right(42))); // true
console.log(isRight(both("Warning", 42))); // false
function isRight<A, B>(ta: These<B, A>): ta is Right<A>;
§
isRight<A, B>(ta: These<B, A>): ta is Right<A>
[src]

§Type Parameters

§Parameters

§
ta: These<B, A>
[src]

§Return Type

§
ta is Right<A>
[src]