method Float16ArrayConstructor.from
Jump to headingFloat16ArrayConstructor.from(arrayLike: ArrayLike<number>): Float16Array
Creates an array from an array-like or iterable object.
Parameters Jump to heading
Jump to headingarrayLike: ArrayLike<number>
An array-like or iterable object to convert to an array.
Return Type Jump to heading
Jump to headingFloat16ArrayConstructor.from<T>(arrayLike: ArrayLike<T>,mapfn: (v: T,k: number,) => number,thisArg?: any,): Float16Array
Creates an array from an array-like or iterable object.
Type Parameters Jump to heading
Parameters Jump to heading
Jump to headingarrayLike: ArrayLike<T>
An array-like or iterable object to convert to an array.
Jump to headingmapfn: (v: T,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.