Closed RadoRado closed 10 years ago
Просто като heads-up, https://github.com/lostm1nd/HackBulgaria/blob/master/FrontEndJS/week1/pluck-func/pluck.js е много ярък пример за ползване на map:
map
var pluck = function(property, arr) { return arr.map(function(item) { return item[property]; }); };
Просто като heads-up, https://github.com/lostm1nd/HackBulgaria/blob/master/FrontEndJS/week1/pluck-func/pluck.js е много ярък пример за ползване на
map
: