You can find an index of an array value by using the indexOf, but it doesn't work with array structure like that, it works only with simple arrays like:
["example1.domain.com", "example2.domain.com", "example3.domain.com"]
Maybe you can create an array containing just the domains as in the example above and then run the indexOf step to find the index of the specific domain.