TypedArray API

The TypedArray objects represent an array-like view of an underlying binary data buffer. There is no global property named TypedArray, nor is there a directly visible TypedArray constructor.

33 Total 27 Methods 6 Properties 1 Statics
  Show all

[Symbol.iterator]()

Returns a new Array Iterator object that contains the values for each index in the array.t[Symbol.iterator]()

[Symbol.toStringTag]

The initial value of the @@toStringTag property is the String value of the constructor name.t[Symbol.toStringTag]

at(…)

Returns the array item at the given index. Accepts negative integers, which count back from the last item.t.at(index)

buffer

The ArrayBuffer referenced by this typed array.t.buffer

byteLength

The length (in bytes) of this typed array.t.byteLength

byteOffset

The offset (in bytes) of this typed array from the start of its ArrayBuffer.t.byteOffset

copyWithin(…)

Copies a sequence of array elements within the array.t.copyWithin(target, start, [end])

entries()

Returns a new Array Iterator object that contains the key/value pairs for each index in the array.t.entries()

every(…)

Tests whether all elements in the array pass the test implemented by the provided function.t.every(callback, [thisArg])

fill(…)

Fills all the elements of an array from a start index to an end index with a static value.t.fill(value, [start, [end]])

filter(…)

Creates a new array with all elements that pass the test implemented by the provided function.t.filter(callback, [thisArg])

find(…)

Returns the value of the first element in the array that satisfies the provided testing function.t.find(callback, [thisArg])

findIndex(…)

Returns the index of the first element in the array that satisfies the provided testing function.t.findIndex(callback, [thisArg])

forEach(…)

Executes a provided function once for each array element.t.forEach(callback, [thisArg])

includes(…)

Determines whether an array includes a certain element, returning true or false as appropriate.t.includes(searchElement, [fromIndex])

indexOf(…)

Returns the first index at which a given element can be found in the array, or -1 if it is not present.t.indexOf(searchElement, [fromIndex])

join(…)

Joins all elements of an array into a string.t.join([separator])

keys()

Returns a new Array Iterator that contains the keys for each index in the array.t.keys()

lastIndexOf(…)

Returns the last index at which a given element can be found in the array, or -1 if it is not present.t.lastIndexOf(searchElement, [fromIndex])

length

The number of elements in this typed array.t.length

map(…)

Creates a new array with the results of calling a provided function on every element in this array.t.map(callback, [thisArg])

TypedArray.prototype

The prototype for TypedArray constructors.TypedArray.prototype

reduce(…)

Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value.t.reduce(callback, [initialValue])

reduceRight(…)

Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value.t.reduceRight(callback, [initialValue])

reverse()

Reverses the order of the elements of an array in place.t.reverse()

set(…)

Stores multiple values in the typed array, reading input values from a specified array.t.set(array, [offset])

slice(…)

Extracts a section of an array and returns a new array.t.slice([begin, [end]])

some(…)

Tests whether at least one element in the array passes the test implemented by the provided function.t.some(callback, [thisArg])

sort(…)

Sorts the elements of an array in place and returns the array.t.sort([compareFunction])

subarray(…)

Returns a new TypedArray from the given start and end element index.t.subarray([begin, [end]])

toLocaleString(…)

Returns a string representing the array and its elements using the current locale.t.toLocaleString([locales, [options]])

toString()

Returns a string representing the array and its elements.t.toString()

values()

Returns a new Array Iterator object that contains the values for each index in the array.t.values()

buffer

property

The ArrayBuffer referenced by this typed array. t.buffer

You seem to be offline. App may not work.