How to check whether a string contains a substring in JavaScript? has a community effort lock on it, preventing any new answers from being added. I can see why this probably happened, as it seems to be a highly-visited question with many answers that are just restating one another. But this is also preventing new information from being added. For example, I had put together a way to do substring checks in a i18n-friendly way (e.g. it doesn't split surrogate pairs in the larger string when che...