News for hackers. Stuff that matters.
Re:Math.min(Math.max(num, min), max) by jkaptur on Thursday August 20, 2020 @12:48PM (#24225292)
In a file of utility hacks

near get(), post(), and ajax()

// we alias at import

// to keep all the code short

min(max(number, min), max)

There are no comments on this comment yet.