We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pred
1 parent ca0ebf8 commit 30fe0beCopy full SHA for 30fe0be
is/array_of.ts
@@ -23,7 +23,7 @@ export function isArrayOf<T>(
23
pred: Predicate<T>,
24
): Predicate<T[]> {
25
return rewriteName(
26
- (x: unknown): x is T[] => isArray(x) && x.every(pred),
+ (x: unknown): x is T[] => isArray(x) && x.every((v) => pred(v)),
27
"isArrayOf",
28
pred,
29
);
0 commit comments