Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
interface Float16ArrayConstructor
Unstable

Properties

readonly
prototype: Float16Array
readonly
BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

readonly
prototype: Float16Array
readonly
BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

Methods

new(length: number): Float16Array
new(array: ArrayLike<number> | ArrayBufferLike): Float16Array
new(
buffer: ArrayBufferLike,
byteOffset?: number,
length?: number,
): Float16Array
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.

new(length: number): Float16Array
new(array: ArrayLike<number> | ArrayBufferLike): Float16Array
new(
buffer: ArrayBufferLike,
byteOffset?: number,
length?: number,
): Float16Array
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.