ascending.js 86 B

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