Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const isParameterValid = () => {
- let isParamValid = false
- if (window.location.href.indexOf('=') > -1) {
- isParamValid = true
- }
- return isParamValid
- }
- const isParameterValid = window.location.href.includes('=');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement