diff --git a/src/array/select.ts b/src/array/select.ts index 14e893bf..f2099d26 100644 --- a/src/array/select.ts +++ b/src/array/select.ts @@ -17,7 +17,7 @@ export function select( array: readonly T[], mapper: (item: T, index: number) => U, - condition: (item: T, index: number) => boolean, + condition: ((item: T, index: number) => boolean) | null | undefined, ): U[] export function select( @@ -28,7 +28,7 @@ export function select( export function select( array: readonly T[], mapper: (item: T, index: number) => U, - condition?: (item: T, index: number) => boolean, + condition?: ((item: T, index: number) => boolean) | null, ): U[] { if (!array) { return []