Creates a new object by picking specific properties from an existing object.
pick(['a', 'b'])({ a: 1, b: 2, c: 3 }) // { a: 1, b: 2 } Copy
pick(['a', 'b'])({ a: 1, b: 2, c: 3 }) // { a: 1, b: 2 }
Creates a new object by picking specific properties from an existing object.
Example