News for hackers. Stuff that matters.
Re:Math.min(Math.max(num, min), max) by earthboundkid on Thursday August 20, 2020 @10:47PM (#24231463)
Wait, really?

BRB, just checking some code…

Re:Math.min(Math.max(num, min), max) by astrod on Friday August 21, 2020 @01:01AM (#24232139)
Yep, the sort method converts values to strings before comparing. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...