Skip to content

Instantly share code, notes, and snippets.

@stowball
Last active June 16, 2017 01:43
Show Gist options
  • Save stowball/8225fff753e825791da8f62edfe098a5 to your computer and use it in GitHub Desktop.
Save stowball/8225fff753e825791da8f62edfe098a5 to your computer and use it in GitHub Desktop.
Feature detect if the browser is any version of IE (excluding Edge)
const isIE = () => {
const style = document.documentElement.style;
return (('msScrollLimit' in style || 'behavior' in style) && !('webkitFlex' in style));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment