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