📜  包含在 javascript 代码示例中

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

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