src/validator/custom-formats/time.js
function inRange (value, min, max) {
  const int = parseInt(value, 10)

  return (
    `${int}` === `${value.replace(/^0/, '')}` &&
    int >= min &&
    int <= max
  )
}
function inRange (value, min, max) {
  const int = parseInt(value, 10)

  return (
    `${int}` === `${value.replace(/^0/, '')}` &&
    int >= min &&
    int <= max
  )
}
function inRange ( value , min , max ) { const int = parseInt ( value , 10 ) return ( ` ${ int } ` === ` ${ value . replace ( / ^0 / , '' ) } ` && int >= min && int <= max ) }
Determine if value is within a numeric range
@param {String|Number} value - value to check
@param {Number} min - start of range (inclusive)
@param {Number} max - end of range (inclusive)
@returns {Boolean} whether or not value is within range
Determine if value is within a numeric range