What is the most efficient way to check a certain condition on every element of an array and return false if one or more elements do not meet the condition, for example, I have this array for example
arr = ["foo","azeaze", "wazeazerar"] for(var ar in arr){ if(ar.length > 5){ console.log(false) }else{ console.log(true) } } as you can see it return true even if the element "foo" length is not greater than 5
arcontains?for... inif you want to iterate over the values of an array