I'm trying to filter a JSON with category but I'm not getting it.
I have 3 checkboxes and when I select them they should filter a json as selected. and when I uncheck a checkbox it should filter only those that are selected. If no checkbox is selected it should return empty []
.
And when I select a checkbox and uncheck it it only returns []
.
Follow the code in JSFiddle