map()
#JavaScript
配列の全ての要素を変換するメソッド.
使い方
arr.map(function(elm){...})
アロー使うともっと簡潔↓↓
arr.map(elm => elm * 2)