forEach文は副作用あるから使わないほうがいいっていう主張。なるべく、underscoreとかlodashの構文を使って副作用がないコードを書いたほうが良い

yosuke_furukawayosuke_furukawa のブックマーク 2014/11/04 07:54

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Avoid forEach - ÆFLASH

    Iterate over a collection. For side effects — the mori.each docs First of all, this post is not about performance. for-loops will always be faster than Array.forEach. If profiling reveals that the ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう