🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › some
Array.prototype.some() - JavaScript | MDN
1 week ago - 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.
🌐
W3Schools
w3schools.com › jsref › jsref_some.asp
JavaScript Array some() Method
❮ Previous JavaScript Array Reference ... age > 18; } Try it Yourself » · The some() method checks if any array elements pass a test (provided as a callback function)....
Discussions

Simplify your JavaScript – Use .some() and .find()
var listHasPilots = false; operatives.forEach(function (operative) { if (operative.pilot) { listHasPilots = true; break; } }); This won't work anyway because break only works inside a loop, not a callback. Instead: var listHasPilots = false; for (const operative of operatives) { if (operative.pilot) { listHasPilots = true; break; } }); More on reddit.com
🌐 r/javascript
101
275
August 4, 2019
javascript - Why Array.some() method behaving differently? - Stack Overflow
I am having an array which contains empty elements. let arr = ['item 1', 'item 2', , 'item 3', , 'item 4', 'item 5']; I am trying to find out if there is any empty element in an array by using Array. More on stackoverflow.com
🌐 stackoverflow.com
[AskJS] Some advice on web scraping with Javascript.
Hey man, just went to that market place and looked in chrome dev tools. Looks like a single page application that is making API calls to populate the front end. Here’s an example of the API they are calling https://data.thetanarena.com/thetan/v1/nif/search?sort=PPB&batPercentMin=60&from=32&size=32 If you look at the url change as you browse the site you will see how each of those query parameters change. Go to the link I posted in the browser and you will see that the data is available in JSON form anyway so no need to scrape the site. Be friendly with your API calls please and have an experiment with changing different parameters, you should be able to figure out the effect each has. More on reddit.com
🌐 r/javascript
12
11
August 13, 2021
[AskJS] What are some advanced Javascript concepts/methods one needs to know before learning frameworks?
In the real world, concepts are invented to solve a problem someone once had. Get out of the academic mind set, search for problems instead and it'll open up the world of concepts for you. More on reddit.com
🌐 r/javascript
19
23
June 1, 2022
🌐
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 - The Array.prototype.some() method determines whether at least one element of the array matches the given predicate.
🌐
GitHub
github.com › zloirock › core-js
GitHub - zloirock/core-js: Standard Library · GitHub
Modular standard library for JavaScript. Includes polyfills for ECMAScript up to 2025: promises, symbols, collections, iterators, typed arrays, many other features, ECMAScript proposals, some cross-platform WHATWG / W3C features and proposals like URL.
Author   zloirock
🌐
Medium
d7k.medium.com › js-includes-vs-some-b3cd546a7bc3
JS .includes() vs .some(). JavaScript array is a powerful data… | by Ashan Dhananjaya | Medium
November 20, 2019 - The function .some() iterates through each an every element of the array by applying comparison logic. It will abort the iteration immediately as soon as it finds the first item that returns true during the comparison.
Find elsewhere
🌐
Fjolt
fjolt.com › article › javascript-array-some
Javascript Array Some Method
some works like a loop - it loops over every element and checks if the callback function you gave returns true for any of them. element and index let us check each element individually in our function, while array gives us easy access to the ...
🌐
TypeScript
typescriptlang.org › docs › handbook › typescript-in-5-minutes.html
TypeScript: Documentation - TypeScript for JavaScript Programmers
There is already a small set of primitive types available in JavaScript: boolean, bigint, null, number, string, symbol, and undefined, which you can use in an interface. TypeScript extends this list with a few more, such as any (allow anything), unknown (ensure someone using this type declares ...
🌐
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 - Well, you pass .some() a function as the argument. That function runs for each value in the array. You can then see if the value fits the condition you’ve written. The function must return a boolean (although a truthy/falsy value works as well). As soon as one true is returned, .some() will itself return true.
🌐
Reddit
reddit.com › r/javascript › simplify your javascript – use .some() and .find()
r/javascript on Reddit: Simplify your JavaScript – Use .some() and .find()
August 4, 2019 - Wasn’t aware of some(). Useful function that I’ve been needlessly implementing myself with reduce and/or filter ... It's great. I'm surprised that developers don't just look up the array functions—just once in their life—because there are literally 27 very useful functions in there, plus .copyWithin and .flatMap. ... I looked them all up when I started with JavaScript in 1998.
🌐
HackerNoon
hackernoon.com › a-deep-dive-into-the-javascript-some-method
A Deep Dive Into the JavaScript Some() Method | HackerNoon
July 5, 2023 - The some() method determines if at least one array member satisfies the test defined by the given function.
🌐
Reality Ripple
udn.realityripple.com › docs › Web › JavaScript › Reference › Global_Objects › Array › some
Array.prototype.some() - JavaScript
The some() method executes the callback function once for each element present in the array until it finds the one where callback returns a truthy value (a value that becomes true when converted to a Boolean). If such an element is found, some() immediately returns true.
🌐
Ultimate Courses
ultimatecourses.com › blog › array-some-javascript
Exploring Array Some in JavaScript - Ultimate Courses
March 26, 2020 - Follow along with the Exploring JavaScript Array Methods series! ... Array Some is a method that exists on the Array.prototype that was introduced in ECMAScript 5 (ES5) and is supported in all modern browsers.
🌐
JavaScript Tutorial
javascripttutorial.net › home › javascript array methods › array.prototype.some()
JavaScript Array some() Method
November 8, 2024 - The code works as expected. However, it is quite verbose. The Array type provides an instance method some() that allows you to test if an array has at least one element that meets a condition.
🌐
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 - Almost every usage of MFR where you need to exit early and not comb through the entire collection is a prime candidate for .some() or .every(), because they both short-circuit and exit the array iteration as early as possible, instead of running till the end and potentially wasting compute resources. In a time when we are building more complex apps and shipping more bytes to the client, resulting in significant overhead to parse JavaScript (see TTI, anything we can do to have three iterations (due to short-circuit) instead of thirty is highly welcome.
🌐
Programiz
programiz.com › javascript › library › array › some
Javascript Array some() (with Examples)
In the above example, we have used the some() method to find out whether any element of the ageArray array contains a value less than 18.