Skip to content

Commit 30fe0be

Browse files
committed
fix(array_of): pass only required arguments to pred
1 parent ca0ebf8 commit 30fe0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

is/array_of.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function isArrayOf<T>(
2323
pred: Predicate<T>,
2424
): Predicate<T[]> {
2525
return rewriteName(
26-
(x: unknown): x is T[] => isArray(x) && x.every(pred),
26+
(x: unknown): x is T[] => isArray(x) && x.every((v) => pred(v)),
2727
"isArrayOf",
2828
pred,
2929
);

0 commit comments

Comments
 (0)