UNPKG

@prelude/cmp

Version:

Cmp module.

13 lines 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const prelude_js_1 = require("./prelude.js"); /** @returns composed non-nullish comparision function as nullish-handling function, nullish values are considered lower than non-nullish values. */ const nullishOr = (cmp) => (a, b) => a == null ? b == null ? prelude_js_1.eq : prelude_js_1.asc : b == null ? prelude_js_1.dsc : cmp(a, b); exports.default = nullishOr; //# sourceMappingURL=nullish-or.js.map