UNPKG
boilerplate.js
Version:
latest (2.1.10)
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.1
2.1.0
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.26.1
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Development Tools
boilerplate.js
/
Boilerplate
/
src
/
js
/
prototypes
/
Array
/
pluck.js
4 lines
•
158 B
JavaScript
View Raw
1
2
3
4
// Takes in Array of Objs. Returns Array of values of the given Obj key
Array
.
prototype
.
pluck
=
function
(
name
) {
return
this
.
map
(
obj
=>
obj[name]); };