📅  最后修改于: 2022-03-11 15:02:32.910000             🧑  作者: Mango
const isBelowThreshold = (currentValue) => currentValue < 40;
const array1 = [1, 30, 39, 29, 10, 13];
console.log(array1.every(isBelowThreshold));
// expected output: true