how to get a particular string from a string in javascript based on condition code example
Example: js string contains
var string = "foo";
var substring = "oo";
console.log(string.indexOf(substring) !== -1);
var string = "foo";
var substring = "oo";
console.log(string.indexOf(substring) !== -1);