Int8Array
open class Int8Array<B : ArrayBufferLike>( val buffer: B, val byteOffset: Int = definedExternally, val length: Int = definedExternally) : TypedArray<Int8Array<B>, Int8Array<ArrayBuffer>, B, JsByte> (source)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the index of the last element in the array where predicate is true, and -1 otherwise.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the index of the last occurrence of a value in an array.
Link copied to clipboard
fun reduce(operation: (previousValue: JsByte, currentValue: JsByte, currentIndex: Int) -> JsByte): JsByte
fun <U : JsAny?> reduce(operation: (previousValue: U, currentValue: JsByte, currentIndex: Int) -> 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.
Link copied to clipboard
fun reduceRight(operation: (previousValue: JsByte, currentValue: JsByte, currentIndex: Int) -> JsByte): JsByte
fun <U : JsAny?> reduceRight(operation: (previousValue: U, currentValue: JsByte, currentIndex: Int) -> 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.
Link copied to clipboard
Converts a number to a string by using the current locale.
Link copied to clipboard
Copies the array and returns the copy with the elements in reverse order.
Link copied to clipboard