Basic function that searches / filters any object or function and returns matched properties.