MeigetsuNet / CalendarServer

Convert calendar between japanese and anno domini
https://calendar.net.meigetsu.jp/
0 stars 0 forks source link

for文 + Array#pushのパターンをArray#mapに置き換える #16

Closed yumetodo closed 2 years ago

yumetodo commented 2 years ago
const ret = [];
someArray.forEach(v => ret.push(foo(v)));
return ret;

みたいなパターンを

return someArray.map(v => foo(v));

に置き換える

Kamioda commented 2 years ago

他の作業の過程で対象箇所を全て置換ができており、対象となる箇所が無いことを確認