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 every() method of TypedArray instances returns false if it finds an element in the array that does not satisfy the provided testing function. Otherwise, it returns true. This method has the same algorithm as Array.prototype.every().
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 every() was called upon.
thisArg OptionalA value to use as this when executing callbackFn. See iterative methods.
true unless callbackFn returns a falsy value for a typed array element, in which case false is immediately returned.
See Array.prototype.every() for more details. This method is not generic and can only be called on typed array instances.
The following example tests whether all elements in the typed array are 10 or bigger.
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.every |
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.