3 ms·
> return a < b ? -1 : a > b ? 1 : 0; This depends on the right-to-left associativity of the ternary operator, so this definitely counts as 'clever'.
by deng 7y ago
> return a < b ? -1 : a > b ? 1 : 0;
This depends on the right-to-left associativity of the ternary operator, so this definitely counts as 'clever'.