Created
October 2, 2016 19:40
-
-
Save bitsmanent/f8b23108b415d774514471bd78c5230f to your computer and use it in GitHub Desktop.
Merge two JavaScript objects
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
| function extend(dst, src) { | |
| var k; | |
| for(k in src) | |
| dst[k] = src[k]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment