You have to use filter at this context,
let names= ["Style","List","Raw"];
let results= names.filter(x => x.includes("s"));
console.log(results); //["List"]
If you want it to be case insensitive then use the below code,
let names= ["Style","List","Raw"];
let results= names.filter(x => x.toLowerCase().includes("s"));
console.log(results); //["Style", "List"]
To make it case in sensitive, we have to make the string’s character all to lower case.