Fix implementation of Array#splice (#347)

This commit is contained in:
Max Graey
2018-11-29 16:41:42 +02:00
committed by Daniel Wirtz
parent 1149abf824
commit 3c5c2cef80
7 changed files with 2371 additions and 1209 deletions

View File

@ -572,8 +572,8 @@ declare class Array<T> {
shift(): T;
some(callbackfn: (element: T, index: i32, array?: Array<T>) => bool): bool;
unshift(element: T): i32;
slice(from: i32, to?: i32): T[];
splice(start: i32, deleteCount?: i32): void;
slice(from: i32, to?: i32): Array<T>;
splice(start: i32, deleteCount?: i32): Array<T>;
sort(comparator?: (a: T, b: T) => i32): this;
join(separator?: string): string;
reverse(): T[];