Skip to content

Commit fe642f5

Browse files
committed
Merge branch 'sergey-shandar-sergey-shandar-findindex'
2 parents fb274ac + 2f9879c commit fe642f5

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/lib/es2015.core.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ 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
19-
* order, until it finds one where predicate returns true. If such an element is found,
19+
* order, until it finds one where predicate returns true. If such an element is found,
2020
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2121
* @param thisArg If provided, it will be used as the this value for each invocation of
2222
* predicate. If it is not provided, undefined is used instead.
@@ -360,10 +360,10 @@ interface ReadonlyArray<T> {
360360
find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;
361361

362362
/**
363-
* Returns the index of the first element in the array where predicate is true, and undefined
363+
* Returns the index of the first element in the array where predicate is true, and -1
364364
* otherwise.
365365
* @param predicate find calls predicate once for each element of the array, in ascending
366-
* order, until it finds one where predicate returns true. If such an element is found,
366+
* order, until it finds one where predicate returns true. If such an element is found,
367367
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
368368
* @param thisArg If provided, it will be used as the this value for each invocation of
369369
* predicate. If it is not provided, undefined is used instead.

src/lib/es5.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ interface Int8Array {
15371537
find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
15381538

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)