nullable
import { nullable } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/comparable.ts";Create a Comparable for nullable types.
@example
import { nullable } from "./comparable.ts";
import * as N from "./number.ts";
const nullableComparable = nullable(N.ComparableNumber);
const result1 = nullableComparable.compare(5)(5); // true
const result2 = nullableComparable.compare(null)(null); // true
const result3 = nullableComparable.compare(5)(null); // false