src/check-types.js
function inRange (data, x, y) {
    if (x < y) {
      return greaterOrEqual(data, x) && data <= y;
    }

    return lessOrEqual(data, x) && data >= y;
  }
function inRange (data, x, y) {
    if (x < y) {
      return greaterOrEqual(data, x) && data <= y;
    }

    return lessOrEqual(data, x) && data >= y;
  }
function inRange ( data , x , y ) { if ( x < y ) { return greaterOrEqual ( data , x ) && data <= y ; } return lessOrEqual ( data , x ) && data >= y ; }
Public function `inRange`.

Returns true if `data` is a number in the range `x..y`, false otherwise.
Public function inRange .