📜  javascript 每 - Javascript 代码示例

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

代码示例4
function isBigEnough(element, index, array) {
  return element >= 10;
}
[12, 5, 8, 130, 44].every(isBigEnough);   // false
[12, 54, 18, 130, 44].every(isBigEnough); // true