S.O.L.I.D The first 5 principles of Object Oriented Design with JavaScript
Cristian Ramirez
2.1K6

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?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.