(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
๐ŸŒ
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 - // JavaScript code for every() ... } geeks(); ... The Array.some() method in JavaScript is used to check whether at least one of the elements of the array satisfies the given condition 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.
๐ŸŒ
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().
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-are-the-every-and-some-methods-in-javascript
What are the every() and some() methods in JavaScript?
Unlike the some() method, every() checks that every element in the given array pass the test within the callback function.
๐ŸŒ
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.
๐ŸŒ
Medium
medium.com โ€บ @parnazphd โ€บ what-is-the-difference-between-every-and-some-in-js-af08059002af
what is the difference between every() and some() in js? | by Parnaz Pirhadi | Medium
April 29, 2023 - what is the difference between every() and some() in js? Both of them executes a function for each array element. The every() method returns true if the function returns true for all elements and โ€ฆ
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Array โ€บ every
Array.prototype.every() - JavaScript | MDN
The array argument is useful if you want to access another element in the array. The following example first uses filter() to extract the positive values and then uses every() to check whether the array is strictly increasing.
Find elsewhere
๐ŸŒ
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 example, the some method returns true because the number 12 is greater than 10. The Array.every() method tests if all elements in an array pass the provided test function.
๐ŸŒ
Refine
refine.dev โ€บ home โ€บ blog โ€บ tutorials โ€บ a definitive guide on javascript every method
A Definitive guide on JavaScript every Method | Refine
January 17, 2025 - every checks if all elements meet the condition, while some checks if at least one element meets the condition. Yes, but you would need to access the object properties in the callback function to test them.
๐ŸŒ
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 - This is exactly the opposite of some method. Every() method tests if every element in the array are the same kind we are testing for.
๐ŸŒ
DEV Community
dev.to โ€บ hkp22 โ€บ javascript-tips-using-every-and-some-for-cleaner-array-checks-379n
JavaScript Tips: Using .every() and .some() for Cleaner Array Checks - DEV Community
October 9, 2024 - In contrast to .every(), the .some() method checks if at least one element in the array passes the test condition. As soon as it finds one element that satisfies the condition, it returns true.
๐ŸŒ
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.
๐ŸŒ
Execute Program
executeprogram.com โ€บ courses โ€บ javascript-array โ€บ lessons โ€บ some-and-every
JavaScript Arrays: Some and Every
Learn programming languages like TypeScript, Python, JavaScript, SQL, and regular expressions. Interactive with real code examples.
๐ŸŒ
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
๐ŸŒ
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 - 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. The predicate function is passed three arguments by both some() and every(): the current array element to test, the index in the array, and the array itself.
๐ŸŒ
Codecademy Forums
discuss.codecademy.com โ€บ frequently asked questions โ€บ javascript faq
When should I use the .every() method vs the .some() method? - JavaScript FAQ - Codecademy Forums
October 10, 2018 - Question When should I use the .every() method vs the .some() method? Answer We can use the .every() method when we want to check if a condition is true for each element in an array, if an element does not pass our test provided to the .every() method, .every() will return false - meaning that at least one element in the array did not pass our test.
๐ŸŒ
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. In this cases, since the number 4 passes the test, 5 and 6 aren't even tested. Now that we generally know how the every and some methods work, here are some additional functionality you can get out of them:
๐ŸŒ
LinkedIn
linkedin.com โ€บ pulse โ€บ java-script-bits-array-methods-some-vs-every-
Java Script Bits - Array Methods - some vs every vs find vs filter
August 12, 2022 - While working on arrays in JavaScript, we often use different array methods for various logics. For this post, weโ€™ll focus on 4 methods used in common โ€“ some, every, find & filter.