isIE()
truewhen the current environment is Internet Explorer 6–11.
| Signature | (options?: DetectOptions) => boolean |
| Matches | MSIE (6–10), Trident/ (11) |
| Does not match | Microsoft Edge — see isEdge() |
Matches
MSIEUA token — IE 6, 7, 8, 9, 10.Trident/engine token — IE 11.
Does not match Microsoft Edge — that's isEdge().
Example
import { isIE } from 'get-browser';
if (isIE()) {
showLegacyWarning();
}
Microsoft retired IE in 2022
Outside of intranet apps and specialized industries, IE has been end-of-life since June 15, 2022. Detecting it is usually a signal to gracefully refuse to render rather than feature-flag.
import { isIE } from 'get-browser';
if (isIE()) {
window.location.replace('/unsupported');
}