Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash pick

Creates an object composed of the picked object properties.

var object = { 'a': 1, 'b': '2', 'c': 3 };
 
_.pick(object, ['a', 'c']);
// => { 'a': 1, 'c': 3 }
Source by lodash.com #
 
PREVIOUS NEXT
Tagged: #lodash #pick
ADD COMMENT
Topic
Name
7+1 =