mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-06 12:30:10 +08:00
arrayForEach method also passes index to callback.
This commit is contained in:
1 parent
12e8c4c228
commit
ba3c1953cb
1 file changed
+1
-1
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user