@hamgom95/pick
v2.2.0
Published
pick properties from object
Downloads
4
Readme
@hamgom95/pick
pick allows extracting multiple object properties by name.
API Documentation
pick(obj, ...props) ⇒
Extract specific properties of object in new object.
Typed that:
- keys to extract have to exist in obj
- returned obj has right types for extracted obj
Kind: global function
Returns: Object with extracted properties.
| Param | Description | | --- | --- | | obj | Object to extract from | | ...props | Properties to extract. |