Skip to main content
Module

x/fun/mod.ts>eq.unknown

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
variable eq.unknown
import { eq } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { unknown } = eq;

A Eq that can compare any unknown values (and thus can compare any values). Underneath it uses strict equality for the comparison.

Examples

Example 1

import { unknown } from "./eq.ts";

const result1 = unknown.equals(1)("Hello"); // false
const result2 = unknown.equals(1)(1); // true

type

Eq<unknown>