string to be checked for presence is a domain name (google.com) in a list of 10 million unique domain names of const type inside browser. Either I can concatenate 10million into 1 string so it is a problem of checking substring or I can use array index of to check the index.
This is similar to https://stackoverflow.com/a/1473742/2752107 and other related questions but does not address the scale.