Skip to content

Commit

Permalink
refactor: simplify matchArrayValue to make it more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
MattAgn committed Jun 4, 2022
1 parent 65db09f commit 5c92cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/matchers/matchArrayValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export function matchArrayValue(
return prop.includes(matcher);
}

return !matcher.some((e) => !prop.includes(e));
return matcher.every((e) => prop.includes(e));
}

0 comments on commit 5c92cb5

Please sign in to comment.