Last active
November 11, 2020 17:51
-
-
Save gh-o-st/ed14e75b24893e2d5c3b5a3b707ca390 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const paramExists = function(name) { | |
| let params = window.location.search; | |
| if (params.indexOf('?'+name) > -1 || params.indexOf('&'+name) > -1) { | |
| return true; | |
| } | |
| return false; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment