code: function check(value, prefix) {
    var val
  
    if (typeof value !== 'string') {
      return false
    }
  
    val = trim(value.split(';', 1)[0]).toLowerCase()
  
    return val === '' || mime.indexOf((prefix || '') + val) !== -1
  }
docs: Check one value.