2 ms·I like doing `Math.max(min, Math.min(num, max))` since it puts them in sort order.by migueloller 6y agoI like doing `Math.max(min, Math.min(num, max))` since it puts them in sort order.