Überprüfen Sie, ob alle Elemente in Array mit einem Zustand JavaScript übereinstimmen

const isBelowThreshold = (currentValue) => currentValue < 40;

const array1 = [1, 30, 39, 29, 10, 13];

console.log(array1.every(isBelowThreshold));
// expected output: true
Kirk-Patrick Brown