UNPKG
sorting-lib
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
A library that makes sorting easier by introducing `Comparator`
sorting-lib
/
dist
/
primitive-comparators.js
8 lines
(7 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
comparePrimitive
=
void
0
;
var
comparePrimitive =
function
(
a, b
) {
return
a > b ?
1
: a < b ? -
1
:
0
; };
exports
.
comparePrimitive
= comparePrimitive;