Update pluck.md
This commit is contained in:
committed by
GitHub
parent
ce48fffb4d
commit
cc8f9e7a72
@ -3,7 +3,7 @@ title: pluck
|
|||||||
tags: array,object,beginner
|
tags: array,object,beginner
|
||||||
---
|
---
|
||||||
|
|
||||||
Converts and array of objects into an array of values corresponding to the specified `key`.
|
Converts an array of objects into an array of values corresponding to the specified `key`.
|
||||||
|
|
||||||
- Use `Array.prototype.map()` to map the array of objects to the value of `key` for each one.
|
- Use `Array.prototype.map()` to map the array of objects to the value of `key` for each one.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user