Data loaded in Leaflet as a layer can be filtered on the fly to create separate layers that meet a certain criteria. This is very helpful when handling data that is not too huge for the browser.
I have a done a video tutorial to demonstrate how to filter data on-the-fly in Leaflet. This tutorial uses GeoJSON data.
Subscribe to the YouTube Channel for more videos and tutorials