@prelude/cmp
Version:
Cmp module.
5 lines (4 loc) • 326 B
TypeScript
import { type Cmp, type R } from './prelude.js';
/** @returns composed non-nullish comparision function as nullish-handling function, nullish values are considered lower than non-nullish values. */
declare const nullishOr: <T>(cmp: Cmp<T>) => (a: T | null | undefined, b: T | null | undefined) => R;
export default nullishOr;