mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 18:26:40 +00:00
Add Array#includes and improve compatibility of Array#indexOf (#41)
This commit is contained in:
1
std/assembly.d.ts
vendored
1
std/assembly.d.ts
vendored
@ -224,6 +224,7 @@ declare class Array<T> {
|
||||
length: i32;
|
||||
/** Constructs a new array. */
|
||||
constructor(capacity?: i32);
|
||||
includes(searchElement: T, fromIndex?: i32): bool;
|
||||
indexOf(searchElement: T, fromIndex?: i32): i32;
|
||||
lastIndexOf(searchElement: T, fromIndex?: i32): i32;
|
||||
push(element: T): void;
|
||||
|
Reference in New Issue
Block a user