Create a handler function that toggles an item in a filter array.
Current filter array value
Item to toggle
Callback to update the filter
Handler function
Create a handler function that toggles an item in a filter array.