Return a new object that only has the properties that match the specified predicate.
Optionally the predicate can be specified to be recursive; if the predicate returns a trueish value for a property that is an object and the
recursive option is specified the object will be filtered recursively. The recursive option defaults to false.
Return a new object that only has the properties that match the specified predicate.
Optionally the
predicatecan be specified to be recursive; if thepredicatereturns atrueish value for a property that is an object and therecursiveoption is specified the object will be filtered recursively. The recursive option defaults tofalse.