Skip to content

Commit

Permalink
fix(array_of): pass only required arguments to pred
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Aug 13, 2024
1 parent ca0ebf8 commit 30fe0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion is/array_of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function isArrayOf<T>(
pred: Predicate<T>,
): Predicate<T[]> {
return rewriteName(
(x: unknown): x is T[] => isArray(x) && x.every(pred),
(x: unknown): x is T[] => isArray(x) && x.every((v) => pred(v)),
"isArrayOf",
pred,
);
Expand Down

0 comments on commit 30fe0be

Please sign in to comment.