Fix findIndex documentation.

This commit is contained in:
Sergey Shandar 2016-06-04 03:26:17 -07:00
parent 6dcd5877a0
commit cdb0fb324f

View File

@ -13,7 +13,7 @@ interface Array<T> {
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and undefined
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,