Skip to content

Instantly share code, notes, and snippets.

@zentetsukenz
Created October 3, 2015 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zentetsukenz/c56cb28e2e8dfaaac9ee to your computer and use it in GitHub Desktop.
Save zentetsukenz/c56cb28e2e8dfaaac9ee to your computer and use it in GitHub Desktop.
Javascript simple array pluck
function pluck (arrayOfObject, property) {
return arrayOfObject.map(function (item) {
return item[property];
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment