Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pluck javascript

function pluck(arr, key) {
  return arr.map(obj => obj[key]);
}
 
PREVIOUS NEXT
Tagged: #pluck #javascript
ADD COMMENT
Topic
Name
6+9 =