var pathname = window.location.pathname;
if (! (pathname.indexOf('edit') > -1) ) {
// Do stuff...
}
In the above example I am negating and only running the JS on pages that DO NOT include 'edit', I want to change it to accept multiple arguments, for example, "edit", "delete", "admin", "settings".
Whats the best way of doing this?