Skip to content

Instantly share code, notes, and snippets.

@Opus1no2
Created July 22, 2016 20:50
Show Gist options
  • Save Opus1no2/25fdab10875a56a2c3009904cac37b1f to your computer and use it in GitHub Desktop.
Save Opus1no2/25fdab10875a56a2c3009904cac37b1f to your computer and use it in GitHub Desktop.
var parsedUrl = 'http://10.7.215.8/ResourceCenter/small-business-banking/starting-out'.split('/');
if (parsedUrl.includes('ResourceCenter') && parsedUrl.includes('small-business-banking')) {
console.log('true');
} else {
console.log('false');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment