paint-brush
Pocket Guide to Javascript Array Some Methodby@smpnjn
544 reads
544 reads

Pocket Guide to Javascript Array Some Method

by Johnny Simpson2mJanuary 30th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The'some' method is useful for when checking if every element matches a certain criteria. It works like a loop - it loops over every element and checks if the callback function you gave returns true for any of them. For this function, `some` means anything more than 1 - so if even one element matches the criteria you define, the expression will return true.
featured image - Pocket Guide to Javascript Array Some Method
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Cliexec