Skip to content

Commit 5c92cb5

Browse files
author
MattAgn
committed
refactor: simplify matchArrayValue to make it more explicit
1 parent 65db09f commit 5c92cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/matchers/matchArrayValue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export function matchArrayValue(
1010
return prop.includes(matcher);
1111
}
1212

13-
return !matcher.some((e) => !prop.includes(e));
13+
return matcher.every((e) => prop.includes(e));
1414
}

0 commit comments

Comments
 (0)