Keeps only the given keys of an object (ignoring keys that are absent).
The source object.
The keys to keep.
A new object with only those keys.
Keeps only the given keys of an object (ignoring keys that are absent).