Object.assign

ECMAscript 6 introduced Object.assign() to achieve this natively in Javascript. The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object. The Object.assign() method only copies enumerable and own properties from a source object to a … Continue reading Object.assign