corrade-nucleus-nucleons
/pack-rat/003_pack_rat/pack-rat/bower_components/moment/src/lib/utils/map.js |
---|
@@ -0,0 +1,7 @@ |
export default function map(arr, fn) { |
var res = [], i; |
for (i = 0; i < arr.length; ++i) { |
res.push(fn(arr[i], i)); |
} |
return res; |
} |