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
/
null.js
5 lines
•
255 B
JavaScript
View Raw
1
2
3
4
5
import
number
from
'./number.js'
;
/**
@returns
`null` comparision function; `null` value is considered lower than non-`null`. */
const
null_
= (
a, b
) =>
number
(a ===
null
?
0
:
1
, b ===
null
?
0
:
1
);
export
default
null_;
//# sourceMappingURL=null.js.map