Skip to content

Commit 520103f

Browse files
authored
Rename callbackfn params to predicate where possible (#39150)
* Rename `callbackfn` params to `predicate` where possible * Perform `gulp baseline-accept`
1 parent 37831de commit 520103f

24 files changed

+237
-237
lines changed

Diff for: src/lib/es2020.bigint.d.ts

+24-24
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ interface BigInt64Array {
6969

7070
/**
7171
* Determines whether all the members of an array satisfy the specified test.
72-
* @param callbackfn A function that accepts up to three arguments. The every method calls
73-
* the callbackfn function for each element in the array until the callbackfn returns false,
72+
* @param predicate A function that accepts up to three arguments. The every method calls
73+
* the predicate function for each element in the array until the predicate returns false,
7474
* or until the end of the array.
75-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
75+
* @param thisArg An object to which the this keyword can refer in the predicate function.
7676
* If thisArg is omitted, undefined is used as the this value.
7777
*/
78-
every(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
78+
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
7979

8080
/**
8181
* Returns the this object after filling the section identified by start and end with value
@@ -89,12 +89,12 @@ interface BigInt64Array {
8989

9090
/**
9191
* Returns the elements of an array that meet the condition specified in a callback function.
92-
* @param callbackfn A function that accepts up to three arguments. The filter method calls
93-
* the callbackfn function one time for each element in the array.
94-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
92+
* @param predicate A function that accepts up to three arguments. The filter method calls
93+
* the predicate function one time for each element in the array.
94+
* @param thisArg An object to which the this keyword can refer in the predicate function.
9595
* If thisArg is omitted, undefined is used as the this value.
9696
*/
97-
filter(callbackfn: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
97+
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
9898

9999
/**
100100
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -240,13 +240,13 @@ interface BigInt64Array {
240240

241241
/**
242242
* Determines whether the specified callback function returns true for any element of an array.
243-
* @param callbackfn A function that accepts up to three arguments. The some method calls the
244-
* callbackfn function for each element in the array until the callbackfn returns true, or until
243+
* @param predicate A function that accepts up to three arguments. The some method calls the
244+
* predicate function for each element in the array until the predicate returns true, or until
245245
* the end of the array.
246-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
246+
* @param thisArg An object to which the this keyword can refer in the predicate function.
247247
* If thisArg is omitted, undefined is used as the this value.
248248
*/
249-
some(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
249+
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
250250

251251
/**
252252
* Sorts the array.
@@ -341,13 +341,13 @@ interface BigUint64Array {
341341

342342
/**
343343
* Determines whether all the members of an array satisfy the specified test.
344-
* @param callbackfn A function that accepts up to three arguments. The every method calls
345-
* the callbackfn function for each element in the array until the callbackfn returns false,
344+
* @param predicate A function that accepts up to three arguments. The every method calls
345+
* the predicate function for each element in the array until the predicate returns false,
346346
* or until the end of the array.
347-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
347+
* @param thisArg An object to which the this keyword can refer in the predicate function.
348348
* If thisArg is omitted, undefined is used as the this value.
349349
*/
350-
every(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
350+
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
351351

352352
/**
353353
* Returns the this object after filling the section identified by start and end with value
@@ -361,12 +361,12 @@ interface BigUint64Array {
361361

362362
/**
363363
* Returns the elements of an array that meet the condition specified in a callback function.
364-
* @param callbackfn A function that accepts up to three arguments. The filter method calls
365-
* the callbackfn function one time for each element in the array.
366-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
364+
* @param predicate A function that accepts up to three arguments. The filter method calls
365+
* the predicate function one time for each element in the array.
366+
* @param thisArg An object to which the this keyword can refer in the predicate function.
367367
* If thisArg is omitted, undefined is used as the this value.
368368
*/
369-
filter(callbackfn: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
369+
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
370370

371371
/**
372372
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -512,13 +512,13 @@ interface BigUint64Array {
512512

513513
/**
514514
* Determines whether the specified callback function returns true for any element of an array.
515-
* @param callbackfn A function that accepts up to three arguments. The some method calls the
516-
* callbackfn function for each element in the array until the callbackfn returns true, or until
515+
* @param predicate A function that accepts up to three arguments. The some method calls the
516+
* predicate function for each element in the array until the predicate returns true, or until
517517
* the end of the array.
518-
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
518+
* @param thisArg An object to which the this keyword can refer in the predicate function.
519519
* If thisArg is omitted, undefined is used as the this value.
520520
*/
521-
some(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
521+
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
522522

523523
/**
524524
* Sorts the array.

0 commit comments

Comments
 (0)