I have an if statement that should check if a value is included if so it does a task. The issue that I have is that its not working
Does not work:
var item ="my-Solo"
if (item.includes('Solo')) {
// handle task here
}
This works perfectly:
var item ="my-Solo"
if (item.includes('my-Solo')) {
// handle task here
}
I need the first example to work because I don't know what the full string will be but I know it will contain a 'solo'.