UNPKG
@prelude/cmp
Version:
latest (4.2.0)
4.2.0
4.1.0
4.0.0
3.0.0
2.0.0
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
Cmp module.
@prelude/cmp
/
mjs
/
ascending.js
5 lines
•
212 B
JavaScript
View Raw
1
2
3
4
5
import
{ asc }
from
'./prelude.js'
;
/** Maps comparision function to ascending predicate. */
const
ascending
= (
cmp
) =>
(
a, b
) =>
cmp
(a, b) === asc;
export
default
ascending;
//# sourceMappingURL=ascending.js.map