js skontrolujte, či reťazec obsahuje znak
"FooBar".includes("oo"); // true
"FooBar".includes("foo"); // false
"FooBar".includes("oo", 2); // false
js skontrolujte, či reťazec obsahuje znak
if (your_string.indexOf('hello') > -1)
{
alert("hello found inside your_string");
}