(If you know C# LINQ , it's like Any vs All)

  • some will return true if any predicate is true

  • every will return true if all predicate is true

Where predicate means function that returns bool ( true/false) for each element

every returns on first false.
some returns on first true

Answer from Royi Namir on Stack Overflow
๐ŸŒ
Medium
medium.com โ€บ coding-in-depth โ€บ when-to-use-every-some-any-foreach-and-map-in-javascript-9ed598010946
When to use every(), some(), any(), forEach() and map() in JavaScript | by Coding In depth | Coding In Depth | Medium
August 8, 2020 - Is Array.any() exist in the JavaScript? The answer is no. However, Array.some() do the purpose of getting any elements. The method Some will return true when the first matching condition will be met.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-are-the-every-and-some-methods-in-javascript
What are the every() and some() methods in JavaScript?
The every() array method in JavaScript ... function condition or not. The some() array method in JavaScript is used to check if at least one of the elements passes the callback test or not....
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Array โ€บ some
Array.prototype.some() - JavaScript | MDN
The some() method of Array instances returns true if it finds an element in the array that satisfies the provided testing function. Otherwise, it returns false.
๐ŸŒ
Refine
refine.dev โ€บ home โ€บ blog โ€บ tutorials โ€บ a definitive guide on javascript every method
A Definitive guide on JavaScript every Method | Refine
January 17, 2025 - This is so because "all items" in an empty array vacuously satisfy the condition that they are even or anything else. Supposedly. In JavaScript, some() returns true if any array element meets a condition, while every() checks if all elements do.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ what-is-the-difference-between-every-and-some-methods-in-javascript
What is the difference between every() and some() methods in JavaScript ? - GeeksforGeeks
July 12, 2025 - The Array.some() method in JavaScript ... The only difference is that the some() method will return true if any predicate is true while every() method will return true if all predicates are true....
๐ŸŒ
DEV Community
dev.to โ€บ amirfakour โ€บ understanding-some-and-every-array-methods-in-javascript-59fh
Understanding "some" and "every" Array Methods in Javascript - DEV Community
June 12, 2023 - In this post, we'll explore two powerful array methods in Javascript: some and every. These methods are inherited from JavaScript and can be used to test elements in an array against specified conditions.
๐ŸŒ
W3Schools
w3schools.com โ€บ jsref โ€บ jsref_some.asp
JavaScript Array some() Method
The some() method checks if any array elements pass a test (provided as a callback function).
Find elsewhere
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ learn-the-every-and-some-array-methods-in-javascript
JavaScript Array Methods โ€“ How to Use every() and some() in JS
August 10, 2022 - So if you get true as the the return value of every you should be aware that the array could be empty. some on the other hand, directly returns false on empty arrays without any calls to predicate and without any weirdness.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ difference-between-every-and-some-methods-javascript
Difference between every() and some() methods in ...
Linux Hint LLC, [email protected] 1210 Kelly Park Circle, Morgan Hill, CA 95037 Privacy Policy and Terms of Use
๐ŸŒ
Oreate AI
oreateai.com โ€บ blog โ€บ understanding-javascript-the-nuances-of-some-vs-any โ€บ ca80413731dce8f4f6105424e86759ff
Understanding JavaScript: The Nuances of Some vs Any - Oreate AI Blog
January 15, 2026 - n- Return Value: .some() returns a boolean indicating whether at least one condition was met; whereas variables declared as any do not enforce constraints on value types which may lead to unexpected behaviors down the line. n- Context: .some() belongs firmly within JavaScript's realm focusing on functional programming paradigms; conversely, โ€˜anyโ€™ exists primarily within TypeScript's static typing framework aiming towards flexible coding practices yet demanding caution from developers who choose its path.
๐ŸŒ
Marius Schulz
mariusschulz.com โ€บ blog โ€บ the-some-and-every-array-methods-in-javascript
The some() and every() Array Methods in JavaScript โ€” Marius Schulz
November 22, 2020 - Similar to some(), the execution of every() is short-circuited. As soon as every() finds an array element that doesn't match the predicate, it immediately returns false and doesn't iterate over the remaining elements.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ using-every-and-some-to-manipulate-javascript-arrays
How To Use .every() and .some() to Manipulate JavaScript Arrays | DigitalOcean
December 12, 2019 - These functions have gained more prominence over the other functions for manipulating array data in JavaScript. Google Trends, for example, shows more active searches for MFR than a sampling of other functions: Google Search also shows that search queries for MFR produce far more results. Search results for .filter() are as much as over 74M. This is 99.97% higher than results for .every(), and 99.98% higher than results for .some().
๐ŸŒ
GitConnected
levelup.gitconnected.com โ€บ javascript-array-some-vs-every-vs-foreach-knowledge-scoops-81dfe43369c6
JavaScript Arrays: Some(), Every(), and forEach() | by Kunal Tandon | Level Up Coding
December 2, 2019 - JavaScript Arrays: Some(), Every(), and forEach() Explaining the uses for each method The Some() Method The some() method iterates through elements and checks if any value in the array satisfies a โ€ฆ
๐ŸŒ
LinkedIn
linkedin.com โ€บ pulse โ€บ understanding-distinction-arraysome-vs-arrayfind-shuaibu-muhammad-20j9f
Understanding the Distinction: Array.some() vs. Array.find() in JavaScript
February 26, 2024 - Suppose you have an array of numbers and want to determine if any of them are even. You can use Array.some() to quickly check for the existence of at least one even number without iterating through the entire array. This approach is efficient for large arrays since it stops iterating as soon as it finds a matching element. variables in javascript ยท
๐ŸŒ
Medium
medium.com โ€บ poka-techblog โ€บ simplify-your-javascript-use-some-and-find-f9fb9826ddfd
Simplify your JavaScript โ€“ Use .some() and .find() | by Etienne Talbot | poka-techblog | Medium
September 5, 2019 - A loop could be used to do anything, but using .find() states that you are looking for one particular array item. As for .some() , you are clearly checking if the array contains items that fit your needs or not.
๐ŸŒ
DEV Community
dev.to โ€บ nas5w โ€บ learn-the-javascript-array-every-and-array-some-methods-356c
Learn the JavaScript Array.every() and Array.some() Methods - DEV Community
June 9, 2020 - Since none of the elements are greater than 10, Array.some returns false after testing each element. ... Not only does it return true, it returns true as soon as the first element passes the test.
๐ŸŒ
JavaScript in Plain English
javascript.plainenglish.io โ€บ javascript-array-some-and-every-2975e0cc12f0
JavaScript Array.some() and every() | by Sateesh Gandipadala | JavaScript in Plain English
December 27, 2019 - JavaScript Array.some() and every() Recently I came across two methods of Array prototype I felt like sharing with you all. Array.some() This can be used to test array has at least one element of the โ€ฆ
๐ŸŒ
MeasureThat
measurethat.net โ€บ Benchmarks โ€บ Show โ€บ 11820 โ€บ 0 โ€บ some-vs-every-includes
Benchmark: Some vs. Every Includes - MeasureThat.net
JavaScript benchmarks, JavaScript performance playground. Measure performance accross different browsers. javascript benchmarks online.