Skip to content

imelgrat/array-every-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Array.every() example

The .every() method checks whether all array values satisfies a given condition or pass a test. Unlike find(), this method returns a boolean value, not the matching elements.

In this example, it will return true if all elements are longer than 2

Read more at: https://imelgrat.me/javascript/array-object-iteration-javascript/