source: node_modules/ramda/src/internal/_map.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 219 bytes
Line 
1function _map(fn, functor) {
2 var idx = 0;
3 var len = functor.length;
4 var result = Array(len);
5
6 while (idx < len) {
7 result[idx] = fn(functor[idx]);
8 idx += 1;
9 }
10
11 return result;
12}
13
14module.exports = _map;
Note: See TracBrowser for help on using the repository browser.