DEV Community

Dillon
Dillon

Posted on

Learning about arrays

TIL:

In javascript, you can use .some method to check if some value or boolean is present within the values listed in an array. If you want to check if every item in the array meets a specific criteria, you can use the .every method.

Syntax = thing.every(); or thing.some();

Top comments (0)