Blog
JavaScript Snippet – String.prototype.contains()
The following is a quick JavaScript function which can determine if a string contains a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be found, is required. The second parameter, which is a boolean specifying Read more…