fork download
  1. function map(fn, arr) {
  2. var res = [];
  3. for (var i=0; i<arr.length; i++) {
  4. res[i] = fn(arr[i]);
  5. }
  6. return res;
  7. }
Success #stdin #stdout 0.02s 4936KB
stdin
Standard input is empty
stdout
Standard output is empty