Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript convert object value to array

function pluck(array, key) {
  return array.map(o => o[key]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #convert #object #array
ADD COMMENT
Topic
Name
6+1 =