Returns a new object that only contains the keys
that were found on the object provided.
If no keys
are found, an empty object is returned.
name | type | description |
---|---|---|
object | object |
The object to pick the provided keys from. |
keys | array |
An array of properties to retrieve from the provided object. |
A new object that only contains the keys
that were found on the provided object. If no keys
were found, an empty object will be returned.