Aug 29, 2017 · 1 min read
Hi. Great article. Why are you using Object.assign in the open-closed example for the composite object. The shapeInterface function returns a new object instance every time so I don’t see the need for an Object.assign?
Hi. Great article. Why are you using Object.assign in the open-closed example for the composite object. The shapeInterface function returns a new object instance every time so I don’t see the need for an Object.assign?