code: function clamp(num, min, max) {
          return num < min?  min
               : num > max?  max
               :             num
      }
docs: /// Function clamp ///////////////////////////////////////////////////////  (num:Num, min:Num, max:Num) ↦ Num  Returns the nearest number within the given boundaries.