import { Comp } from "https://deno.land/x/rimbu@1.0.2/common/mod.ts";
const { withNull } = Comp;
Returns a Comp instance that extends the given comp
instance with the capability to handle null
values, where null is considered to be smaller
than any other value, and equal to another null.
Examples
Example 1
Example 1
const c = Comp.withNull(Comp.numberComp())
console.log(c.compare(null, 5) < 0)
// => true
console.log(c.compare(null, null))
// => 0