index.js
function isType (type, val) {
  return (type == Any)
      || (type == Object && is.object(val))
      || (type == Function && is.function(val))
      || (type == String && is.string(val))
      || (type == Error && is.error(val))
      || (type == Number && is.number(val))
      || (type == Array && is.array(val))
      || (type == Boolean && is.boolean(val))
      || (type == RegExp && is.regExp(val))
      || (type == Date && is.date(val))
      || (type == null && is.nullOrUndefined(val))
      || (val instanceof type)
}
function isType (type, val) {
  return (type == Any)
      || (type == Object && is.object(val))
      || (type == Function && is.function(val))
      || (type == String && is.string(val))
      || (type == Error && is.error(val))
      || (type == Number && is.number(val))
      || (type == Array && is.array(val))
      || (type == Boolean && is.boolean(val))
      || (type == RegExp && is.regExp(val))
      || (type == Date && is.date(val))
      || (type == null && is.nullOrUndefined(val))
      || (val instanceof type)
}
function isType ( type , val ) { return ( type == Any ) || ( type == Object && is . object ( val ) ) || ( type == Function && is . function ( val ) ) || ( type == String && is . string ( val ) ) || ( type == Error && is . error ( val ) ) || ( type == Number && is . number ( val ) ) || ( type == Array && is . array ( val ) ) || ( type == Boolean && is . boolean ( val ) ) || ( type == RegExp && is . regExp ( val ) ) || ( type == Date && is . date ( val ) ) || ( type == null && is . nullOrUndefined ( val ) ) || ( val instanceof type ) }
Check if the value is-a type
Check if the value is - a type