var nums = [1, 2, 3, 4, 5, 6, 7]; function even(ele) { return ele%2 == 0; } console.log(nums.some(even)) /*consol.log will show true because at least one of the elements is even*/