Add Array#fill (#250)

This commit is contained in:
Max Graey
2018-09-19 01:59:22 +03:00
committed by Daniel Wirtz
parent 9c770d801e
commit 3f035395cd
6 changed files with 2822 additions and 1516 deletions

View File

@ -436,6 +436,7 @@ declare class Array<T> {
length: i32;
/** Constructs a new array. */
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;