[jQuery] merging arrays?

[jQuery] merging arrays?


ok let say i have these 2 data objects:
options1 = {url: null, replace_id: null, number: 0}
options2 = {url: 'test,php', replace_id: 'test'};
How would i merge these two objects so that the 2nd object override the
first object data is it exists?
--
View this message in context: http://www.nabble.com/merging-arrays--tf4257239s15494.html#a12115485
Sent from the JQuery mailing list archive at Nabble.com.