function detectIeVersionByNavigator() {
  const ua = navigator.userAgent.toLowerCase();
  if (ua.indexOf('msie') != -1) {
    const value = parseInt(ua.split('msie')[1], 10);
    if (typeof value == 'number' && !isNaN(value)) {
      return value;
    }
  }

  return NOT_IE;
}
Detect the current IE version using MSIE version presented in the user agent
string (This will not detected IE 11 which does not present a MSIE version),
or zero if IE is not detected.
@return {number}