Re:Math.min(Math.max(num, min), max)
by tgb on Thursday August 20, 2020 @10:50AM
(#24223866)
Wait, really? I just had to double-check my one JS project for bugs and either I used to know this gotcha or I got lucky. My sort()-ing needed to handle NaNs carefully so I was already using custom comparators.
[ Parent
| on HN ]
There are no comments on this comment yet.