Closed pyrho closed 8 years ago
Lodash 4.0.0 deprecated .pluck in favor of .map which has the same behavior.
From this
Removed .pluck in favor of .map with iteratee shorthand: var objects = [{ 'a': 1 }, { 'a': 2 }]; // in 3.10.1 _.pluck(objects, 'a'); // → [1, 2] _.map(objects, 'a'); // → [1, 2] // in 4.0.0 _.map(objects, 'a'); // → [1, 2]
var objects = [{ 'a': 1 }, { 'a': 2 }];
// in 3.10.1
_.pluck(objects, 'a'); // → [1, 2]
_.map(objects, 'a'); // → [1, 2]
// in 4.0.0
Thanks! :+1:
Good to know!
That was a swift merge ! Thanks !
No problem. I was happy you pointed it out early!
Lodash 4.0.0 deprecated .pluck in favor of .map which has the same behavior.
From this