I figured a way to do it, we can do it by figuring out the Javascript interpreter version:
var IE = (function () {
"use strict";
var ret, isTheBrowser, actualVersion, jscriptMap, jscriptVersion;
isTheBrowser = false;
jscriptMap = {"5.5": "5.5", "5.6": "6", "5.7": "7", "5.8": "8", "9": "9", "10": "10", "11": "11"};
jscriptVersion = new Function("/*@cc_on return @_jscript_version; @*/")();
if (jscriptVersion !== undefined) {
isTheBrowser = true;
actualVersion = jscriptMap[jscriptVersion];
if (actualVersion === undefined) {
actualVersion = jscriptVersion;
}
}
ret = {isTheBrowser: isTheBrowser, actualVersion: actualVersion};
return ret;
}());