← Back to release summary

Object.assign()

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 45)
Intent stage
None

Summary

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.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

Samples: https://googlechrome.github.io/samples/object-assign-es6/index.html

View on chromestatus.com