📅  最后修改于: 2022-03-11 15:03:14.953000             🧑  作者: Mango
["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