Interface Int16ArrayConstructor
interface Int16ArrayConstructor {
new Int16ArrayConstructor(length: number): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(
array: ArrayLike<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Int16Array<TArrayBuffer>;
new Int16ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(
elements: Iterable<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(): Int16Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: Int16Array;
from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;
from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer>;
from(arrayLike: Iterable<number>): Int16Array<ArrayBuffer>;
from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer>;
of(...items: number[]): Int16Array<ArrayBuffer>;
}
new Int16ArrayConstructor(length: number): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(
array: ArrayLike<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Int16Array<TArrayBuffer>;
new Int16ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(
elements: Iterable<number>,
): Int16Array<ArrayBuffer>;
new Int16ArrayConstructor(): Int16Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: Int16Array;
from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;
from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer>;
from(arrayLike: Iterable<number>): Int16Array<ArrayBuffer>;
from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer>;
of(...items: number[]): Int16Array<ArrayBuffer>;
}
Index
Constructors
constructor
- new Int16ArrayConstructor(length: number): Int16Array<ArrayBuffer>
Parameters
- length: number
Returns Int16Array<ArrayBuffer>
- new Int16ArrayConstructor(array: ArrayLike<number>): Int16Array<ArrayBuffer>
Parameters
- array: ArrayLike<number>
Returns Int16Array<ArrayBuffer>
- new Int16ArrayConstructor<TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Int16Array<TArrayBuffer> Type Parameters
- TArrayBuffer extends ArrayBufferLike = ArrayBuffer
Parameters
- buffer: TArrayBuffer
Optional
byteOffset: numberOptional
length: number
Returns Int16Array<TArrayBuffer>
- new Int16ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Int16Array<ArrayBuffer> Parameters
- array: ArrayBuffer | ArrayLike<number>
Returns Int16Array<ArrayBuffer>
- new Int16ArrayConstructor(elements: Iterable<number>): Int16Array<ArrayBuffer>
Parameters
- elements: Iterable<number>
Returns Int16Array<ArrayBuffer>
- new Int16ArrayConstructor(): Int16Array<ArrayBuffer>
Returns Int16Array<ArrayBuffer>
Methods
from
- from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: ArrayLike<number>
An array-like or iterable object to convert to an array.
Returns Int16Array<ArrayBuffer>
- arrayLike: ArrayLike<number>
- from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer> Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Int16Array<ArrayBuffer>
- from(arrayLike: Iterable<number>): Int16Array<ArrayBuffer>
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: Iterable<number>
An array-like or iterable object to convert to an array.
Returns Int16Array<ArrayBuffer>
- arrayLike: Iterable<number>
- from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Int16Array<ArrayBuffer> Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Int16Array<ArrayBuffer>
of
- of(...items: number[]): Int16Array<ArrayBuffer>
Returns a new array from a set of elements.
Parameters
- ...items: number[]
A set of elements to include in the new array object.
Returns Int16Array<ArrayBuffer>
- ...items: number[]
The size in bytes of each element in the array.