dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Replaced _.pluck with _.map because of Lodash 4.0.0 #82

Closed pyrho closed 8 years ago

pyrho commented 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]

dthree commented 8 years ago

Thanks! :+1:

zeke commented 8 years ago

Good to know!

pyrho commented 8 years ago

That was a swift merge ! Thanks !

dthree commented 8 years ago

No problem. I was happy you pointed it out early!