DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+9 =
Submit