$media->is($value)

Checks if a file is of a certain type

  • $value (string)
    An extension or mime type
  • return (boolean)