source:
node_modules/ramda/src/internal/_map.js@
65b6638
Last change on this file since 65b6638 was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 219 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | function _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 | ||
14 | module.exports = _map; |
Note:
See TracBrowser
for help on using the repository browser.