javascript like search code example
Example 1: js string search
var str = "This is a test sentence";
var hasTest = str.includes("test");
if(hasTest == true){
//do a thing
}
Example 2: javascript search like
let searchValue = 'usu'
let filteredNames = names.filter(name => name.includes(searchValue));
Example 3: javascript search like
let names = ['yusuf', 'sabri', 'bayrakdar'];