Returns a new object with the specified keys from a source object
const obj = { "one": true, "two": false, "foo": "bar"};const newObj = objPick(obj, ['two', 'foo']);=>{ "two": false, "foo": "bar"}
An object
An array of keys to pick
Optional
Optional options
Default value to use when upsert-ing
Whether to create new properties for missing keys
Generated using TypeDoc
Returns a new object with the specified keys from a source object
Example