arrayForEach method also passes index to callback.

This commit is contained in:
Blake Doss
2015-10-03 10:18:23 -04:00
parent 12e8c4c228
commit ba3c1953cb

View File

@@ -261,7 +261,7 @@ interface KnockoutUtils {
compareArrays<T>(a: T[], b: T[]): Array<KnockoutArrayChange<T>>;
arrayForEach<T>(array: T[], action: (item: T) => void): void;
arrayForEach<T>(array: T[], action: (item: T, index: number) => void): void;
arrayIndexOf<T>(array: T[], item: T): number;