UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

13 lines (9 loc) 279 B
import { getValue } from "./main.ts"; export function eq<A>(a: A, b: A): boolean; export function eq<A>(a: A): (b: A) => boolean; export function eq<A>(a: A, b?: A) { if (arguments.length === 1) { return (_b: A) => eq(a, _b); } return getValue(a) === getValue(b); }