Skip to content

Commit d42dbfa

Browse files
committed
Merge branch 'sergey-shandar-findindex' of https://github.com/sergey-shandar/TypeScript into sergey-shandar-sergey-shandar-findindex
2 parents fb274ac + cdb0fb3 commit d42dbfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Array<T> {
1313
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T | undefined;
1414

1515
/**
16-
* Returns the index of the first element in the array where predicate is true, and undefined
16+
* Returns the index of the first element in the array where predicate is true, and -1
1717
* otherwise.
1818
* @param predicate find calls predicate once for each element of the array, in ascending
1919
* order, until it finds one where predicate returns true. If such an element is found,

0 commit comments

Comments
 (0)