Int16Array.from

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

Syntax

from(arrayLike, mapfn?, thisArg?)

Parameters

Examples

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