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

isSome

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

Check if a Datum has a value (Refresh or Replete).

@example
import { isSome, initial, refresh, replete } from "./datum.ts";

console.log(isSome(initial)); // false
console.log(isSome(refresh("data"))); // true
console.log(isSome(replete("data"))); // true
function isSome<A>(ta: Datum<A>): ta is Some<A>;
§
isSome<A>(ta: Datum<A>): ta is Some<A>
[src]

§Type Parameters

§Parameters

§Return Type

§
ta is Some<A>
[src]