Β© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Chris Bongers
Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day π
Did you ever need to know if one of the elements in an array passed a test? This is where the some() method comes in handy. Let's keep using our product array, but let's add a discounted product. We then want to test if some of our products are disco...
Daniel Augusto De Abreu Mascena
Frontend Developer @Dataprev e-gov br
Thanks for sharing but your last example returns an incorrect result:
users[2/*Billy*/].age < 18 // returns false
Ah yes, you were paying attention! You are right, should have been <= ! Updating the post now
Dany Tulumidis
Development <3
thank you for this series! JS Array methods are awesome and probably my most used integrated methods from JS :D
They are sooo cool, learning so much every day about just how powerful they are!
Daniel Augusto De Abreu Mascena
Frontend Developer @Dataprev e-gov br
Thanks for sharing but your last example returns an incorrect result:
users[2/*Billy*/].age < 18 // returns false