Returns whether a MIME type corresponds to either HTML.
MIME type string
boolean indicating whether a provided MIME type corresponds to either HTML
const bool = isHTML('text/html');// returns true Copy
const bool = isHTML('text/html');// returns true
const bool = isHTML('text/plain');// returns false Copy
const bool = isHTML('text/plain');// returns false
Returns whether a MIME type corresponds to either HTML.