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

isBoth

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

Check if a These is a Both (partial success).

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

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

§Type Parameters

§Parameters

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

§Return Type

§
ta is Both<B, A>
[src]