descending.js 86 B

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