在 reduce 使用點點點 spread operator 是效能上的 anti-pattern

2 views
Skip to first unread message

陳冠霖

unread,
Oct 3, 2022, 3:36:46 AM10/3/22
to jason-m...@googlegroups.com

隨著 functional programing 在 JavaScript 領域的盛行,跟 ECMAScript 標準的演進,JS 開發者在處理資料結構轉換上有了更多可以符合 immutable 的做法。於是下面的 pattern 越來越常在 array 轉成 object 裡面出現... 文章連結

Reply all
Reply to author
Forward
0 new messages