import { eq } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { undefinable } = eq;
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