teapawtteapawt
$
JavaScript Daily (@JavaScriptDaily) profile picture

JavaScript Daily

@JavaScriptDaily20 Jun 2021
Why Using Object Spread (`...`) with `reduce` May Be A Bad Idea: prateeksurana.me/blog/why-us…

Why using object spread with reduce probably a bad idea — Prateek Surana

Explore why using object spread with .reduce() can sometimes significantly affect the performance of your JavaScript apps and libraries.

prateeksurana.me

Jun 20, 2021 · 9:20 AM UTC

6
35
4
171
RelevantRecentLikes
Back to the original post: JavaScript Daily (@JavaScriptDaily) profile pictureJavaScript DailyWhy Using Object Spread (`...`) with `reduce` May Be A Bad Idea: https://prateeksurana.me/blog/why-using-object-spread-with-reduce-bad-idea/
Tushar (@ctushr) profile picture
Tushar
@ctushr20 Jun 2021
@psuranas 👌🏼👌🏼🙌🙌
2
Colin Richardson (@WORMSStweet) profile picture
Colin Richardson@WORMSStweet20 Jun 2021
Why using .......... reduce is a bad idea
1
2
ayush 🐒 (@_guptaji_) profile picture
ayush 🐒@_guptaji_20 Jun 2021
.@psuranas is trending super hot these days 🔥🔥🔥
1
River (@RiverNotFlowing) profile picture
River@RiverNotFlowing20 Jun 2021
The O(3n) argument is really dumb, aside from the fact that it's still linear. O(n) with 3 ops per iteration is the exact same as O(3n) with 1 op. And no an op is not a js statement.
1
Vipul (@vipulbhj) profile picture
Vipul@vipulbhj20 Jun 2021
@psuranas 🔥🔥🔥🔥
1
dev_umar (@stradox4u) profile picture
dev_umar@stradox4u20 Jun 2021
cc @makneta – at Abuja, Nigeria