function setValueInRange (value, min, max) {
      if (value === '' || isNaN(value)) return min
      if (value > max) return max
      if (value < min) return min
      return value
    }
Constrain value within range.
@param {Float|string} value
@param {Float} min
@param {Float} max
@returns {Float|string} Returns a number or numeric string