Type alias TypedArrayBufferViewConstructor<A>
TypedArrayBufferViewConstructor<A>: {
BYTES_PER_ELEMENT: number;
prototype: A;
from(arrayLike) => A;
from(arrayLike, mapfn?, thisArg?) => A;
from<T>(arrayLike, mapfn, thisArg?) => A;
of(...items) => A;
new (): A;
new (elements): A;
new (array): A;
new (buffer, byteOffset?, length?): A;
new (length): A;
}
Type declaration
- new (): A
Returns A
- new (elements): A
Parameters
elements: Iterable<number>
Returns A
- new (array): A
Parameters
array: ArrayLike<number> | ArrayBufferLike
Returns A
- new (buffer, byteOffset?, length?): A
Parameters
buffer: ArrayBufferLike
Optional
byteOffset: number
Optional
length: number
Returns A
- new (length): A
Returns A
Readonly
BYTES_PER_ELEMENT: number
Readonly
prototype: A
from:function
- from(arrayLike): A
Parameters
arrayLike: ArrayLike<number>
Returns A
- from(arrayLike, mapfn?, thisArg?): A
Parameters
arrayLike: Iterable<number>
Optional
mapfn: ((v, k) => number)
- (v, k): number
Returns number
Optional
thisArg: any
Returns A
- from<T>(arrayLike, mapfn, thisArg?): A
Parameters
arrayLike: ArrayLike<T>
mapfn: ((v, k) => number)
- (v, k): number
Returns number
Optional
thisArg: any
Returns A
of:function