@@ -221,8 +221,8 @@ export class Collection<K, V> extends Map<K, V> {
221
221
* should use the `get` method. See
222
222
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get | MDN} for details.
223
223
*
224
- * @param fn - The function to test with (should return boolean)
225
- * @param thisArg - Value to use as `this` when executing function
224
+ * @param fn - The function to test with (should return a boolean)
225
+ * @param thisArg - Value to use as `this` when executing the function
226
226
* @example
227
227
* ```ts
228
228
* collection.find(user => user.username === 'Bob');
@@ -250,8 +250,8 @@ export class Collection<K, V> extends Map<K, V> {
250
250
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array.findIndex()},
251
251
* but returns the key rather than the positional index.
252
252
*
253
- * @param fn - The function to test with (should return boolean)
254
- * @param thisArg - Value to use as `this` when executing function
253
+ * @param fn - The function to test with (should return a boolean)
254
+ * @param thisArg - Value to use as `this` when executing the function
255
255
* @example
256
256
* ```ts
257
257
* collection.findKey(user => user.username === 'Bob');
@@ -278,7 +278,7 @@ export class Collection<K, V> extends Map<K, V> {
278
278
* Removes items that satisfy the provided filter function.
279
279
*
280
280
* @param fn - Function used to test (should return a boolean)
281
- * @param thisArg - Value to use as `this` when executing function
281
+ * @param thisArg - Value to use as `this` when executing the function
282
282
* @returns The number of removed entries
283
283
*/
284
284
public sweep ( fn : ( value : V , key : K , collection : this) => unknown ) : number ;
@@ -299,8 +299,8 @@ export class Collection<K, V> extends Map<K, V> {
299
299
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | Array.filter()},
300
300
* but returns a Collection instead of an Array.
301
301
*
302
- * @param fn - The function to test with (should return boolean)
303
- * @param thisArg - Value to use as `this` when executing function
302
+ * @param fn - The function to test with (should return a boolean)
303
+ * @param thisArg - Value to use as `this` when executing the function
304
304
* @example
305
305
* ```ts
306
306
* collection.filter(user => user.username === 'Bob');
@@ -334,7 +334,7 @@ export class Collection<K, V> extends Map<K, V> {
334
334
* contains the items that passed and the second contains the items that failed.
335
335
*
336
336
* @param fn - Function used to test (should return a boolean)
337
- * @param thisArg - Value to use as `this` when executing function
337
+ * @param thisArg - Value to use as `this` when executing the function
338
338
* @example
339
339
* ```ts
340
340
* const [big, small] = collection.partition(guild => guild.memberCount > 250);
@@ -385,7 +385,7 @@ export class Collection<K, V> extends Map<K, V> {
385
385
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap | Array.flatMap()}.
386
386
*
387
387
* @param fn - Function that produces a new Collection
388
- * @param thisArg - Value to use as `this` when executing function
388
+ * @param thisArg - Value to use as `this` when executing the function
389
389
* @example
390
390
* ```ts
391
391
* collection.flatMap(guild => guild.members.cache);
@@ -407,7 +407,7 @@ export class Collection<K, V> extends Map<K, V> {
407
407
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
408
408
*
409
409
* @param fn - Function that produces an element of the new array, taking three arguments
410
- * @param thisArg - Value to use as `this` when executing function
410
+ * @param thisArg - Value to use as `this` when executing the function
411
411
* @example
412
412
* ```ts
413
413
* collection.map(user => user.tag);
@@ -430,7 +430,7 @@ export class Collection<K, V> extends Map<K, V> {
430
430
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
431
431
*
432
432
* @param fn - Function that produces an element of the new collection, taking three arguments
433
- * @param thisArg - Value to use as `this` when executing function
433
+ * @param thisArg - Value to use as `this` when executing the function
434
434
* @example
435
435
* ```ts
436
436
* collection.mapValues(user => user.tag);
@@ -451,7 +451,7 @@ export class Collection<K, V> extends Map<K, V> {
451
451
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array.some()}.
452
452
*
453
453
* @param fn - Function used to test (should return a boolean)
454
- * @param thisArg - Value to use as `this` when executing function
454
+ * @param thisArg - Value to use as `this` when executing the function
455
455
* @example
456
456
* ```ts
457
457
* collection.some(user => user.discriminator === '0000');
@@ -474,7 +474,7 @@ export class Collection<K, V> extends Map<K, V> {
474
474
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every | Array.every()}.
475
475
*
476
476
* @param fn - Function used to test (should return a boolean)
477
- * @param thisArg - Value to use as `this` when executing function
477
+ * @param thisArg - Value to use as `this` when executing the function
478
478
* @example
479
479
* ```ts
480
480
* collection.every(user => !user.bot);
@@ -539,7 +539,7 @@ export class Collection<K, V> extends Map<K, V> {
539
539
* but returns the collection instead of undefined.
540
540
*
541
541
* @param fn - Function to execute for each element
542
- * @param thisArg - Value to use as `this` when executing function
542
+ * @param thisArg - Value to use as `this` when executing the function
543
543
* @example
544
544
* ```ts
545
545
* collection
@@ -565,7 +565,7 @@ export class Collection<K, V> extends Map<K, V> {
565
565
* Runs a function on the collection and returns the collection.
566
566
*
567
567
* @param fn - Function to execute
568
- * @param thisArg - Value to use as `this` when executing function
568
+ * @param thisArg - Value to use as `this` when executing the function
569
569
* @example
570
570
* ```ts
571
571
* collection
0 commit comments