find multiple javascript

Solutions on MaxInterview for find multiple javascript by the best coders in the world

showing results for - "find multiple javascript"
Rémi
07 Apr 2019
1// if you want to find multiple values in array
2// You have to use 'filter' method
3
4// Example:
5let names= ["Style","List","Raw"];
6let results= names.filter(x => x.includes("s"));
7console.log(results); //["List"]
8