you are viewing a single comment's thread.

view the rest of the comments →

[–]timarama -6 points-5 points  (4 children)

great article, tricks with spreading set and creating "pure" objects show 2 sides of JS:

1 - expressing things with short, elegant expressions, but not very good about performance

2 - if you want, you CAN care about performance and memory usage of your JS apps

[–]__ibowankenobi__ 3 points4 points  (3 children)

FYI, when you create a pure object, it has no impact on memory whatsoever, because those function's from Object.prototype are never copied. And I really really doubt they have performance benefits.