📜  find js like - Javascript 代码示例

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

代码示例1
const arrBirds = ["Mourning Dove", "Bald Eagle", 'Eurasian Collared-Dove'];

let filtered = arrBirds.filter(arrBirds => arrBirds.includes('ov'));
console.log(filtered);
//Mourning Dove,Eurasian Collared-Dove