Returns a new object containing only the given keys from obj.
obj
Missing keys are omitted from the result rather than producing undefined-valued properties.
undefined
pick({ a: 1, b: 2, c: 3 }, ['a', 'c'])// { a: 1, c: 3 } Copy
pick({ a: 1, b: 2, c: 3 }, ['a', 'c'])// { a: 1, c: 3 }
Returns a new object containing only the given keys from
obj.Missing keys are omitted from the result rather than producing
undefined-valued properties.