I have strings as below, I am search text order in all variables but I want to return true for string2 and string3 but for string1 should be false.
var string1 = "orders"
var string2 = "orders/pack"
var string3 = "orders/123"
var str = "order"
console.log(string1.includes(str)); //false
console.log(string2.includes(str)); //true
console.log(string3.includes(str)); //true
order. Is there a typo, or do you want to include some more explanation?