Skip to content

Commit

Permalink
refactor: switch to 'some' for better readability and performance ben…
Browse files Browse the repository at this point in the history
…efits

Co-authored-by: Volodymyr Shelmuk <[email protected]>
  • Loading branch information
zhyian and shvlv authored Dec 27, 2024
1 parent f6dd198 commit 6f85c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/ts/filters/filter-dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class Dropdown {
( checkbox ) => checkbox.checked
);

return ! this.initialState.every(
( value, index ) => value === currentState[ index ]
return this.initialState.some(
( value, index ) => value !== currentState[ index ]
);
}

Expand Down

0 comments on commit 6f85c88

Please sign in to comment.