Uint16Array.from

Creates a typed array from an array-like or iterable object.

Syntax

from(arrayLike, mapfn?, thisArg?)

Parameters

Examples

Uint16Array.from([1, 2, 3])
Uint16Array [ 1, 2, 3 ]