ES6 Polyfill for Object.assign() using the Mozilla Developers Network (MDN) implementation.
NOTE: This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway.
This code came directly from the MDN Object.assign() page.
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
$ bower install es6-polyfill-object-assign
or
$ bower install es6-polyfill-object-assign --save
or
$ bower install es6-polyfill-object-assign --save-dev
Via HTML import, add this line:
<link rel="import" href="../es6-polyfill-object-assign/es6-polyfill-object-assign.html">
Or to use the minified version:
<link rel="import" href="../../es6-polyfill-object-assign/es6-polyfill-object-assign-min.html">
See MDN JavaScript reference page for Object.assign:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign