Useful notes & manuals
from the
world wide web
L:
P:
Register now!
Merging JavaScript objects JavaScript
Solution from: http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically Created by tlw on 08.12.2019 @ 07:57

for (attrname in obj2)
{
    obj1[attrname] = obj2[attrname];
}

If you're using a framework that shits all over your prototypes then you have to get fancier with checks like hasOwnProperty, but that code will work for 99% of cases.

javascript   object   oop   json   merge   join
 
Created by THE LOST WEB © 2009-2012