test-action-debian-package/node_modules/ramda/es/internal/_map.js

12 lines
210 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
export default function _map(fn, functor) {
var idx = 0;
var len = functor.length;
var result = Array(len);
while (idx < len) {
result[idx] = fn(functor[idx]);
idx += 1;
}
return result;
}