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...

Markdown supported Β· ββ΅ to post
thank you for this series! JS Array methods are awesome and probably my most used integrated methods from JS :D
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