Creates an object composed of the picked object properties.
object
The source object.
Optional
The property names to pick, specified individually or in arrays.
Returns the new object.
var object = { 'a': 1, 'b': '2', 'c': 3 };_.pick(object, ['a', 'c']);// => { 'a': 1, 'c': 3 } Copy
var object = { 'a': 1, 'b': '2', 'c': 3 };_.pick(object, ['a', 'c']);// => { 'a': 1, 'c': 3 }
_.pick
Creates an object composed of the picked
objectproperties.