// 数组中的元素全部满足指定条件返回true
let arr = [1, 3, 5, 7, 9];
console.log(arr.every((value, index, array) => value > 10));// false
console.log(arr.every((value, index, array) => value > 8));// false
console.log(arr.every((value, index, array) => value > 0));// true
05-08 08:29