☰
Debian Codegraph
@
0.1.1-5.1
0.1.1-5
/
/
vendor
/
static
/
moment
/
src
/
lib
/
utils
/
map.js
☽
☼
vendor/static/moment/src/lib/utils/map.js
code
plain
raw
Expat
JS Foundation and other contributors; Tim Wood, Iskren Chernev, Moment.js contributors
debian/copyright
1
export default function map(arr, fn) {
2
var res = [],
3
i,
4
arrLen = arr.length;
5
for (i = 0; i < arrLen; ++i) {
6
res.push(fn(arr[i], i));
7
}
8
return res;
9
}