mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 10:41:42 +00:00
Implement TypedArray#forEach (#530)
This commit is contained in:
4
std/assembly/index.d.ts
vendored
4
std/assembly/index.d.ts
vendored
@ -1136,7 +1136,9 @@ declare abstract class TypedArray<T> implements ArrayBufferView<T> {
|
||||
/** The findIndex() method returns an index in the typed array, if an element in the typed array satisfies the provided testing function. Otherwise -1 is returned. See also the find() [not implemented] method, which returns the value of a found element in the typed array instead of its index. */
|
||||
findIndex(callbackfn: (value: T, index: i32, self: this) => bool): i32;
|
||||
/** The every() method tests whether all elements in the typed array pass the test implemented by the provided function. This method has the same algorithm as Array.prototype.every(). */
|
||||
every(callbackfn: (value: T, index: i32, self: this) => bool): i32;
|
||||
every(callbackfn: (value: T, index: i32, self: this) => bool): bool;
|
||||
/** The forEach() method executes a provided function once per array element. This method has the same algorithm as Array.prototype.forEach().*/
|
||||
forEach(callbackfn: (value: T, index: i32, self: this) => void): void;
|
||||
}
|
||||
|
||||
/** An array of twos-complement 8-bit signed integers. */
|
||||
|
Reference in New Issue
Block a user