A typed array of 8-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
BYTES_PER_ELEMENT: number
The size in bytes of each element in the array.
buffer: ArrayBufferLike
The ArrayBuffer instance referenced by the array.
byteLength: number
The length in bytes of the array.
byteOffset: number
The offset in bytes of the array.
length: number
The length of the array.
copyWithin(target: number,start: number,end?: number,): this
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
every(predicate: () => unknown,thisArg?: any,): boolean
Determines whether all the members of an array satisfy the specified test.
fill(value: number,start?: number,end?: number,): this
Changes all array elements from start
to end
index to a static value
and returns the modified array
Returns the elements of an array that meet the condition specified in a callback function.
find(predicate: () => boolean,thisArg?: any,): number | undefined
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
findIndex(predicate: () => boolean,thisArg?: any,): number
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Performs the specified action for each element in an array.
indexOf(searchElement: number,fromIndex?: number,): number
Returns the index of the first occurrence of a value in an array.
join(separator?: string): string
Adds all the elements of an array separated by the specified separator string.
lastIndexOf(searchElement: number,fromIndex?: number,): number
Returns the index of the last occurrence of a value in an array.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
reduce(callbackfn: () => number): number
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
reduce<U>(callbackfn: () => U,initialValue: U,): U
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
reduceRight(callbackfn: () => number): number
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
reduceRight(callbackfn: () => number,initialValue: number,): number
reduceRight<U>(callbackfn: () => U,initialValue: U,): U
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Determines whether the specified callback function returns true for any element of an array.
sort(compareFn?: (a: number,b: number,) => number): this
Sorts an array.
Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
toLocaleString(): string
Converts a number to a string by using the current locale.
toString(): string
Returns a string representation of an array.