Skip to main content
Float16ArrayConstructor - Platform - Web documentation
interface Float16ArrayConstructor
Unstable
Private

Properties

readonly
BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

Methods

of(...items: number[]): Float16Array

Returns a new array from a set of elements.

from(arrayLike: ArrayLike<number>): Float16Array

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

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

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