Last active
October 9, 2017 13:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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