// Internet Explorer 6-11 const isIE = !!document.documentMode;
var isIE = document.documentMode ? true : false; // simple as that