find multiple javascript

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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