JS OOP Deep-Dive: Object.assign

prop ‘a’ from obj1 copied over to obj2
prop ‘a’ on target object has been overridden by prop ‘a’ on source object
prop ‘a’ from last argument ‘obj3’ wins

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Zachary DuBow

Zachary DuBow

wannabe Torah scholar, amateur stock market investor, junior web developer