Returns whether a 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
MIME type string
boolean indicating whether a provided MIME type corresponds to either HTML
Generated using TypeDoc
Returns whether a MIME type corresponds to either HTML.
Example
Example