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 TypedArray.from() static method creates a new typed array from an array-like or iterable object. This method is nearly the same as Array.from().
Where TypedArray is one of:
An iterable or array-like object to convert to a typed array.
mapFn OptionalA function to call on every element of the typed array. If provided, every value to be added to the array is first passed through this function, and mapFn's return value is added to the typed array instead. 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.
thisArg OptionalValue to use as this when executing mapFn.
A new TypedArray instance.
See Array.from() for more details.
There are some subtle distinctions between Array.from() and TypedArray.from() (note: the this value mentioned below is the this value that TypedArray.from() was called with, not the thisArg argument used to invoke mapFn):
Using an arrow function as the map function to manipulate the elements
The this value of from() must be a constructor that returns a TypedArray instance.
| ECMAScript® 2027 Language Specification # sec-%typedarray%.from |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 10, 2025 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.