Creates an object composed of the picked object properties.
object
The source object.
The property paths to pick.
Returns the new object.
5.7.0
const object = { 'a': 1, 'b': '2', 'c': 3 }pick(object, ['a', 'c'])// => { 'a': 1, 'c': 3 } Copy
const object = { 'a': 1, 'b': '2', 'c': 3 }pick(object, ['a', 'c'])// => { 'a': 1, 'c': 3 }
Creates an object composed of the picked
object
properties.