Expose the filterBy function as a public API

Expose the filterBy() function. Fixes #75