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