Created
November 4, 2015 12:24
-
-
Save edgarberm/2ba348e81791e286356e to your computer and use it in GitHub Desktop.
For those browsers that don't support Object.assign yet:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( !Object.assign ) { | |
Object.assign = function( obj, items ) { | |
var src = Object( items), target = Object( obj ) | |
Object.getOwnPropertyNames( src ).forEach( function( k ) { | |
target[ k ] = src[ k ] | |
}) | |
return target; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment