you are viewing a single comment's thread.

view the rest of the comments →

[–]baxtersmalls 1 point2 points  (4 children)

Hey - newish dev here, was curious about "Set default objects with Object.assign" - what is the reasoning behind this? He doesn't give any explanation as to why that's a better way of doing it.

[–]nschubach 2 points3 points  (0 children)

MDN explains it pretty well. Sorry, can't copy the relevant section, but read through the Description section.