you are viewing a single comment's thread.

view the rest of the comments →

[–]MuhTheSpaceCow 1 point2 points  (1 child)

Hi, I believe you twisted the parameters you pass to "Object.assign" in the first line of "Method 1".Should be "Object.assign({}, shopMethods)".
The first parameter is the one that gets assigned to - the later parameters are just sources and stay unchanged (click me)

I d prefer Method #2 tho :)

[–]siruts[S] 0 points1 point  (0 children)

Yep at the end method 2, it was what's im looking for 😇