Float16Constructor.from - Web documentation
method Float16Constructor.from
Float16Constructor.from(
arrayLike: Iterable<number>,
mapfn?: (
v: number,
k: number,
) => number
,
thisArg?: any,
): Float16

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

Parameters

arrayLike: Iterable<number>

An array-like or iterable object to convert to an array.

optional
mapfn: (
v: number,
k: number,
) => number

A mapping function to call on every element of the array.

optional
thisArg: any

Value of 'this' used to invoke the mapfn.

Return Type