Skip to main content

from

method Float16Constructor.from
Jump to headingFloat16Constructor.from(
arrayLike: Iterable<number>,
mapfn?: (
v: number,
k: number,
) => number
,
thisArg?: any,
): Float16Array

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

Parameters Jump to heading

Jump to headingarrayLike: Iterable<number>

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

optional
Jump to headingmapfn: (
v: number,
k: number,
) => number

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

optional
Jump to headingthisArg: any

Value of 'this' used to invoke the mapfn.

Return Type Jump to heading

Back to top