windowExcludes
is the inverse of windowIncludes
.
It is a case-sensitive function that is used to check if the current base url does not
match the list of supplied urls. Since index pages can either be empty (i.e "") or "index", a frontslash ("/") can be used to denote
an index page.
if( windowExcludes('some/url') ){
// url is not "some/url"
}
$validUrls = ['some/url1', 'some/url2'];
if( windowExcludes($validUrl) ){
// current url is not in accepted url's list
}