Filtering using simple comparisons

Many of the filtering operations that you want to perform are simple ones. These include simple equality checks, greater than checks, and less than checks. Each of these comparisons is executed in a callback function that's passed to the filter() method.