UNPKG

@prelude/cmp

Version:

Cmp module.

10 lines 274 B
import { eq, asc, dsc } from './prelude.js'; const undefinedOr = (cmp) => (a, b) => a === undefined ? b === undefined ? eq : asc : b === undefined ? dsc : cmp(a, b); export default undefinedOr; //# sourceMappingURL=undefined-or.js.map