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

isLeft

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

Check if a These is a Left (complete failure).

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

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

§Type Parameters

§Parameters

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

§Return Type

§
ta is Left<B>
[src]