andrewplummer/Sugar — pull request #269 by esad (2013-02-03 22:03:18+00:00)
Title: Implement Number#clamp to limit a number to specified min/max values

I hope there's place for this useful method in the SugarJS