code: function (num, min, max) {
          if (typeof num !== 'number' || num < min) {
              return min;
          }
          if (num === Infinity) {
              return _.isNil(max) ? min : max;
          }
  
          return num;
      }
docs: @private
  
  @param {Number} num
  @param {Number} min [description]
  @param {Number} [max]
  
  @returns {Number}