Home / Javascript Tips Generated By ChatGPT / Checking If Every Element Passes a Test in Javascript every checks if all elements in an array pass a test. Source Code let ages = [22, 33, 16, 40]; let allAdults = ages.every(age => age >= 18); console.log(allAdults);