Skip to content

Instantly share code, notes, and snippets.

@mlakkadshaw
Last active December 24, 2015 19:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mlakkadshaw/6bc81a35e33dbcfcc1bc to your computer and use it in GitHub Desktop.
Example of _.pluck method of underscoreJS.
var data = [{tweet:"hello world", id:1}, {tweet:"this is awesome", id: 2}, {tweet: 'wow, this is nice', id: 3}];
_.pluck(data, 'id');
//output
[1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment