JavaScript обнаружил Internet Explorer
// Internet Explorer 6-11
const isIE = !!document.documentMode;
Batman
// Internet Explorer 6-11
const isIE = !!document.documentMode;
var isIE = document.documentMode ? true : false; // simple as that