Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get only one value from object array javascript

var result = objArray.map(function(a) {return a.foo;});
var result = objArray.map(a => a.foo);

//$uj@y
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #object #array #javascript
ADD COMMENT
Topic
Name
8+5 =