isIE = function(version) {
  const ver = getIEVersion();

  if (typeof version === 'undefined') {
    return !!ver
  }

  return version === ver
}
Returns whether the used browser is Internet Explorer.

@param {Number} version Optional parameter to specify IE version