4 lines
86 B
JavaScript
4 lines
86 B
JavaScript
|
export default function(a, b) {
|
||
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
||
|
}
|