Whenever I need to clamp a number between a `min` and a `max`, it takes me ages to convince myself this implementation is correct.
But yeah, it's easy! I just want the min of the max of the num and the min and the max.
"@jaffathecake I actually don't have a problem reading that because I am very smart" yes well done mate thanks for getting in touch
Why not just create an utility? Much more readable
Aug 21, 2020 路 4:01 AM UTC


