Skip to content

Commit af2ecd3

Browse files
committed
chore: remove redundant eslint-disable comments in array utility functions
1 parent 617b3ab commit af2ecd3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/array/array.utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export function random<T>(array: readonly T[]): T | undefined {
8787

8888
type StrNumSym = string | number | symbol;
8989

90-
/* eslint-disable no-redeclare */
9190
/**
9291
* Groups items in an array by a nested key or key function.
9392
*
@@ -127,7 +126,6 @@ export function groupBy<T>(
127126

128127
return Object.fromEntries(Object.entries(result).map(([k, v]) => [k, v as readonly T[]]));
129128
}
130-
/* eslint-enable no-redeclare */
131129

132130
/**
133131
* Shuffles an array using the Fisher-Yates algorithm. Uses crypto-secure randomness.
@@ -278,7 +276,6 @@ export function zip<T>(...arrays: ReadonlyArray<T>[]): T[][] {
278276
return result;
279277
}
280278

281-
/* eslint-disable no-redeclare */
282279
/**
283280
* Splits an array into two arrays based on a predicate function.
284281
* Supports type-guard narrowing via overload.
@@ -316,7 +313,6 @@ export function partition<T>(
316313

317314
return [pass, fail];
318315
}
319-
/* eslint-enable no-redeclare */
320316

321317
/**
322318
* Generates an array of numbers within a specified range.

0 commit comments

Comments
 (0)