Class

SymbolicTypedArray

Inheritance hierarchy
Properties

The size in bytes of each element in the array.

Accessors
# get buffer(): ArrayBufferLike [symbolic_typed_array/symbolic_typed_array.ts:87] set buffer(buffer: ArrayBufferLike ): void [symbolic_typed_array/symbolic_typed_array.ts:95]

The ArrayBuffer instance referenced by the array.

Returns
ArrayBufferLike

The ArrayBuffer instance referenced by the array.

Parameters
Name Type Default Description
buffer ArrayBufferLike
Returns
void

The length in bytes of the array.

Returns
number

The offset in bytes of the array.

Returns
any

The number of elements in this buffer. Actual byte size is (length * SIZE_OF_FLOAT).

Returns
number

The number in this buffer. Actual offset size is (offset * SIZE_OF_FLOAT).

Returns
number
Methods
#

copyWithin

copyWithin(target: number , start: number , end?: number ): this [symbolic_typed_array/symbolic_typed_array.ts:153]

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

Parameters
Name Type Default Description
target number

If target is negative, it is treated as length+target where length is the length of the array.

start number

If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

end number

If not specified, length of the this object is used as its default value.

Returns
this
#

entries

entries(): IterableIterator<[number , number ] > [symbolic_typed_array/symbolic_typed_array.ts:245]

Returns an iterable of key, value pairs for every entry in the array

Returns
IterableIterator<[number , number ] >
#

fill

fill(value: number , start?: number , end?: number ): this [symbolic_typed_array/symbolic_typed_array.ts:166]

Returns the this object after filling the section identified by start and end with value

Parameters
Name Type Default Description
value number

value to fill array section with

start number

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

end number

index to stop filling the array at. If end is negative, it is treated as length+end.

Returns
this
#

includes

includes(searchElement: number , fromIndex?: number | undefined ): boolean [symbolic_typed_array/symbolic_typed_array.ts:210]
Parameters
Name Type Default Description
searchElement number
fromIndex number | undefined
Returns
boolean
#

indexOf

indexOf(searchElement: number , fromIndex?: number ): number [symbolic_typed_array/symbolic_typed_array.ts:177]

Returns the index of the first occurrence of a value in an array.

Parameters
Name Type Default Description
searchElement number

The value to locate in the array.

fromIndex number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

Returns
number
#

join

join(separator?: string ): string [symbolic_typed_array/symbolic_typed_array.ts:186]

Adds all the elements of an array separated by the specified separator string.

Parameters
Name Type Default Description
separator string

A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

Returns
string
#

keys

keys(): IterableIterator<number > [symbolic_typed_array/symbolic_typed_array.ts:252]

Returns an iterable of keys in the array

Returns
IterableIterator<number >
#

lastIndexOf

lastIndexOf(searchElement: number , fromIndex?: number ): number [symbolic_typed_array/symbolic_typed_array.ts:196]

Returns the index of the last occurrence of a value in an array.

Parameters
Name Type Default Description
searchElement number

The value to locate in the array.

fromIndex number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

Returns
number
#

set

set(array: ArrayLike<number > , offset?: number | undefined ): void [symbolic_typed_array/symbolic_typed_array.ts:219]

Sets a value or an array of values.

Parameters
Name Type Default Description
array ArrayLike<number >

A typed or untyped array of values to set.

offset number | undefined

The index in the current array at which the values are to be written.

Returns
void
#

sort

sort(compareFn?: function ): this [symbolic_typed_array/symbolic_typed_array.ts:205]

Sorts an array.

Parameters
Name Type Default Description
compareFn function

The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.

Returns
this
#

Convert SymbolicTypedArray instance into actual TypedArray instance.

Returns
T

actual typed array

#

toLocaleString

Converts a number to a string by using the current locale.

Returns
string
#

Returns a string representation of an array.

Returns
string
#

values

values(): IterableIterator<number > [symbolic_typed_array/symbolic_typed_array.ts:259]

Returns an iterable of values in the array

Returns
IterableIterator<number >