map.js (189B)
1export default function map(arr, fn) { 2 var res = [], 3 i, 4 arrLen = arr.length; 5 for (i = 0; i < arrLen; ++i) { 6 res.push(fn(arr[i], i)); 7 } 8 return res; 9}
cscg24-guacamoleCSCG 2024 Challenge 'Guacamole Mashup' | |
git clone https://git.sinitax.com/sinitax/cscg24-guacamole | |
Log | Files | Refs | sfeed.txt |