📌  相关文章
📜  检查数组javascript代码示例中的每个值

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

代码示例1
["foo", "foo", "foo"].every((item, index) => item === "foo") // returns true since every item matches our condition
["foo", "bar", "foo"].every((item, index) => item === "foo") // return false because not all items match our condtion