/array-every-example

Array.every() example

Primary LanguageJavaScript

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/