Re:Math.min(Math.max(num, min), max)
by jacobolus on Thursday August 20, 2020 @05:54PM
(#24229468)
It’s usually nicer to make a helper function:
Then it can be easily used later via a descriptive name. e.g.
[ Parent
| on HN ]
There are no comments on this comment yet.