2026-05-31 13:54:31 +02:00

4 lines
86 B
JavaScript

export default function(a, b) {
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
}