Split an object's own and inherited property values into two groups according to a predicate function.