Created
September 20, 2018 06:58
-
-
Save daybrush/647e168838075fc10668cea7d8264b37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// side-effect | |
var isMobile = /mobi|ios|android/.test(agent); | |
// side-effect-free | |
var isMobile = /*#__PURE__*/(function() { | |
return /mobi|ios|android/.test(agent); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment