I have
if (windowURL.indexOf('example.com/blog/') > -1)
but how do I code if it does NOT contain that string? Is it simply:
if (!windowURL.indexOf('example.com/blog/') > -1)
or is there a better way? I see other examples that use ===
but no examples specific to my particular syntax. Thank you.