Search posts, tags, users, and pages
The some() method tests whether at least one of the elements in the array passes the test implemented by the provided function. The result of the some() method is a boolean. Let's see the syntax:- const new = array.some(( v, i, a) => { // ...
Rahul
@RAHULISM · India.
hustling
19, Hustler.
Markdown supported · ⌘↵ to post
Ricardo Luz
Thanks for sharing this 😀 usually the devs are so addicted in the filter or the map that generally they don't know about the existence of some and every; I like these two because they help to avoid the old for loop in various ways!
Thank you very much.
Ricardo Luz
Thanks for sharing this 😀 usually the devs are so addicted in the filter or the map that generally they don't know about the existence of some and every; I like these two because they help to avoid the old for loop in various ways!