I have an array of pages
var $pages = ["events", "template", "privacy", "terms", "mentor", "party", "getinvolved", "tools"];
What I want to do is
if ( $body[0].id !== anyOfThePageInTheArray ) {
//do something here
});
How can I do like if the page that they are on is not one of the page that is in the array.
I have tried .inArray
and .each
but I think maybe I'm doing it wrong or something.