I am trying to figure out how to find a string from array in url of the page. I know how to find a string from similar answers but I am not getting to run through an array, something like this has been done:

url e.g: <http://www.sitename.com/the-window-is-open>

```
var stringToFind = [
            'book',
            'window',
            'cup'
        ];

if(window.location.href.indexOf(stringToFind) > -1) {
    console.log("your url contains "+stringToFind);
}

```

Do I have to use "for" loop or maybe there is much simpler way?

Thank you very much.