Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2016.
The some() method of TypedArray instances returns true if it finds an element in the array that satisfies the provided testing function. Otherwise, it returns false. This method has the same algorithm as Array.prototype.some().
A function to execute for each element in the typed array. It should return a truthy value to indicate the element passes the test, and a falsy value otherwise. The function is called with the following arguments:
elementThe current element being processed in the typed array.
indexThe index of the current element being processed in the typed array.
arrayThe typed array some() was called upon.
thisArg OptionalA value to use as this when executing callbackFn. See iterative methods.
false unless callbackFn returns a truthy value for a typed array element, in which case true is immediately returned.
See Array.prototype.some() for more details. This method is not generic and can only be called on typed array instances.
The following example tests whether any element in the typed array is bigger than 10.
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.some |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Feb 24, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.