Create a new object filtered to have only properties for which the callback returns true.