deno.com
method Float16ArrayConstructor.from
#Float16ArrayConstructor.from(arrayLike: ArrayLike<number>): Float16Array<ArrayBuffer>

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

Parameters #

#arrayLike: ArrayLike<number>

An array-like object to convert to an array.

Return Type #

Float16Array<ArrayBuffer>
#Float16ArrayConstructor.from<T>(
arrayLike: ArrayLike<T>,
mapfn: (
v: T,
k: number,
) => number
,
thisArg?: any,
): Float16Array<ArrayBuffer>

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

Type Parameters #

#T

Parameters #

#arrayLike: ArrayLike<T>

An array-like object to convert to an array.

#mapfn: (
v: T,
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 #

Float16Array<ArrayBuffer>
#Float16ArrayConstructor.from(elements: Iterable<number>): Float16Array<ArrayBuffer>

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

Parameters #

#elements: Iterable<number>

An iterable object to convert to an array.

Return Type #

Float16Array<ArrayBuffer>
#Float16ArrayConstructor.from<T>(
elements: Iterable<T>,
mapfn?: (
v: T,
k: number,
) => number
,
thisArg?: any,
): Float16Array<ArrayBuffer>

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

Type Parameters #

#T

Parameters #

#elements: Iterable<T>

An iterable object to convert to an array.

optional
#mapfn: (
v: T,
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 #

Float16Array<ArrayBuffer>