I'm looking for a built-in method that combines two associative arrays or objects into one. Using webkit in Adobe Air if that makes a difference. But basically I have two objects or associative arrays if you will:
var obj1 = { prop1: "something", prop2 "anotherthing" };
var obj2 = { prop3: "somethingelse" };
and I want to do merge them and create an object that has all the combined keys and values of the above two objects:
var obj3 = obj1.merge( obj2 ); //something similar to array's concat maybe?
alert(obj3.prop1); //alerts "something"
alert(obj3.prop2); //allerts "anotherthing"
alert(obj3.prop3); //alerts "somethingelse"
Any built in function that does this or do I have to manually do it?