• Returns whether a MIME type corresponds to either HTML.

    Parameters

    • mime: string

      MIME type string

    Returns boolean

    boolean indicating whether a provided MIME type corresponds to either HTML

    Example

    const bool = isHTML('text/html');
    // returns true

    Example

    const bool = isHTML('text/plain');
    // returns false