2 ms·
I agree, but would go with: return a < b ? -1 : a > b; This does the right thing, but removes the nested tertiary which to me is a big win.
by unwind 8y ago
I agree, but would go with:
return a < b ? -1 : a > b;
This does the right thing, but removes the nested tertiary which to me is a big win.