2.2.0 • Published 5 years ago

@hamgom95/pick v2.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

@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.

ParamDescription
objObject to extract from
...propsProperties to extract.
2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago