import { undefinable } from "https://deno.land/x/fun@v2.0.0-alpha.6/eq.ts";
Creates a derivative Eq that can also compare undefined values in addition to the source eq.
Examples
Example 1
Example 1
import { undefinable, number } from "./eq.ts";
const { equals } = undefinable(number);
const result1 = equals(1)(undefined); // false
const result2 = equals(undefined)(undefined); // true
Parameters
eq: Eq<A>