📜  检查js中字符串数组中的字符串 - Javascript代码示例

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

代码示例1
const names = ["Mario", "Anna", "Jacob"];

console.log(names.includes("Jade")) // Output: False
// It Checks If (Names) Contain's ("Jade") Or Not


console.log(names.includes("Anna")) // Output: True
// It Checks If (Names) Contain's ("Anna") Or Not