leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE |

2635.js (160B)


1 /** 2 * @param {number[]} arr 3 * @param {Function} fn 4 * @return {number[]} 5 */ 6 7 var map = function(arr, fn) { 8 for(elem in arr) fn(elem); 9 return arr; 10 };