mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-02 16:11:49 +00:00
Add Array#fill (#250)
This commit is contained in:
1
std/portable/index.d.ts
vendored
1
std/portable/index.d.ts
vendored
@ -247,6 +247,7 @@ declare class Array<T> {
|
||||
[key: number]: T;
|
||||
length: i32;
|
||||
constructor(capacity?: i32);
|
||||
fill(value: T, start?: i32, end?: i32): this;
|
||||
every(callbackfn: (element: T, index: i32, array?: Array<T>) => bool): bool;
|
||||
findIndex(predicate: (element: T, index: i32, array?: Array<T>) => bool): i32;
|
||||
includes(searchElement: T, fromIndex?: i32): bool;
|
||||
|
Reference in New Issue
Block a user