Check out example codes for "typoescript find multiple items in array and return found". It will help you in understanding the concepts better.

Code Example 1

let names= ["Style","List","Raw"];
let results= names.filter(x => x.includes("s"));
console.log(results); //["List"]

Learn ReactJs, React Native from akashmittal.com