• This project
    • Loading...
  • Sign in

Jeongmin Seo / favorite_restaurant

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • favorite_restaurant
  • ..
  • utils
  • map.js
  • Jumi Yang's avatar
    Connect socket.io · adf1fbf0
    adf1fbf0
    Jumi Yang authored 2022-06-05 19:41:19 +0900
map.js 189 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9
export default function map(arr, fn) {
    var res = [],
        i,
        arrLen = arr.length;
    for (i = 0; i < arrLen; ++i) {
        res.push(fn(arr[i], i));
    }
    return res;
}