forked from waja/action-debian-package
12 lines
210 B
JavaScript
12 lines
210 B
JavaScript
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;
|
|
} |