pick

Object
since 0.1.0

Arguments

  • Object The source object.
  • ...(string|string[]) The property paths to pick.

Returns

Object the new object.

Creates an object composed of the picked object properties.

Example of Lodash _.pick

var object = { 'a': 1, 'b': '2', 'c': 3 };

_.pick(object, ['a', 'c']);
// => { 'a': 1, 'c': 3 }