Uint8Array.from

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

Syntax

from(arrayLike, mapfn?, thisArg?)

Parameters

Examples

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