leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2635.js (160B)
0 /** 1 * @param {number[]} arr 2 * @param {Function} fn 3 * @return {number[]} 4 */ 5 6 var map = function(arr, fn) { 7 for(elem in arr) fn(elem); 8 return arr; 9 };