📜  查找多个 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:54.995000             🧑  作者: Mango

代码示例1
// if you want to find multiple values in array
// You have to use 'filter' method

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