📌  相关文章
📜  在 javascript 代码示例中使用包含查找特定字符串

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

代码示例1
const friendsList = ["Abir", "Lalkhan", "Lion", "Shamol", "Kabir", "Shabir"];
if (friendsList.includes("Lion")) {
    console.log("Lion is Exists");
}
//Output: Lion is Exists