Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active October 9, 2017 13:14
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 rafaelmaeuer/76de1ab63689ae924e7dd032939da13e to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/76de1ab63689ae924e7dd032939da13e to your computer and use it in GitHub Desktop.
From an array of objects, extract value of a property as array (JavaScript) - From https://stackoverflow.com/questions/19590865/from-an-array-of-objects-extract-value-of-a-property-as-array
var result = objArray.map(function(a) {return a.foo;});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment