Skip to content

Instantly share code, notes, and snippets.

@fabiomaggio
Last active August 29, 2015 14:02
Show Gist options
  • Save fabiomaggio/fcd56557936440f30412 to your computer and use it in GitHub Desktop.
Save fabiomaggio/fcd56557936440f30412 to your computer and use it in GitHub Desktop.
Simple feature detection for modern browsers
// HTML5 browser
if('querySelector' in document
&& 'localStorage' in window
&& 'addEventListener' in window
&& Array.prototype.forEach) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment