Interface Float64ArrayConstructor
interface Float64ArrayConstructor {
new Float64ArrayConstructornew (length: number): Float64Array;
new Float64ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Float64Array;
new Float64ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
new Float64ArrayConstructornew (elements: Iterable<number, any, any>): Float64Array;
new Float64ArrayConstructornew (): Float64Array;
BYTES_PER_ELEMENT: number;
prototype: Float64Array;
from(arrayLike: ArrayLike<number>): Float64Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Float64Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Float64Array;
of(...items: number[]): Float64Array;
}
new Float64ArrayConstructornew (length: number): Float64Array;
new Float64ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Float64Array;
new Float64ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
new Float64ArrayConstructornew (elements: Iterable<number, any, any>): Float64Array;
new Float64ArrayConstructornew (): Float64Array;
BYTES_PER_ELEMENT: number;
prototype: Float64Array;
from(arrayLike: ArrayLike<number>): Float64Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Float64Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Float64Array;
of(...items: number[]): Float64Array;
}
Index
Constructors
constructor
- new
Float64 (length): Float64ArrayArray Constructor Parameters
- length: number
Returns Float64Array
- new
Float64 (array): Float64ArrayArray Constructor Parameters
- array: ArrayBufferLike | ArrayLike<number>
Returns Float64Array
- new
Float64 (buffer, byteOffset?, length?): Float64ArrayArray Constructor Parameters
- buffer: ArrayBufferLike
Optional
byteOffset: numberOptional
length: number
Returns Float64Array
- new
Float64 (elements): Float64ArrayArray Constructor Parameters
- elements: Iterable<number, any, any>
Returns Float64Array
- new
Float64 (): Float64ArrayArray Constructor Returns Float64Array
Methods
from
- from(arrayLike): Float64Array
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 Float64Array
- arrayLike: ArrayLike<number>
- from<T>(arrayLike, mapfn, thisArg?): Float64Array
Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Float64Array
- from(arrayLike, mapfn?, thisArg?): Float64Array
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: Iterable<number, any, any>
An array-like or iterable object to convert to an array.
Optional
mapfn: ((v: number, k: number) => number)A mapping function to call on every element of the array.
- (v, k): number
Parameters
- v: number
- k: number
Returns number
Optional
thisArg: anyValue of 'this' used to invoke the mapfn.
Returns Float64Array
- arrayLike: Iterable<number, any, any>
of
- of(...items): Float64Array
Returns a new array from a set of elements.
Parameters
Rest
...items: number[]A set of elements to include in the new array object.
Returns Float64Array
The size in bytes of each element in the array.