📌  相关文章
📜  检查数组是否不包含字符串 js - Javascript 代码示例

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

代码示例3
function checkInput(input, words) {
 return words.some(word => new RegExp(word, "i").test(input));
}

console.log(checkInput('"Definitely," he said in a matter-of-fact tone.', 
["matter", "definitely"]));