pick
Pick only the desired properties from an object
266 bytes
Usage
Given an object and a list of keys in the object, returns a new object with only the given keys.
Predicate function
The pick
function can also accept a predicate function as the filter argument. This allows for more complex filtering logic beyond simple key inclusion or exclusion.