Hi Ben,

You can use the extend function:
$.extend(arr1, arr2);

arr2 is now part of arr1.

The difference comes because you are dealing with 2 object literal arrays
(objects), and as such have to handle them as objects.

Regards
Lee


benjamin_p wrote:
> 
> 
> Hi,
> 
> I'm trying to use the $.get Operation with multiple input arrays for
> the parameters list.
> 
> This is no problem:
> $.get('http://...', {key: 'value'}, function() {});
> 
> But how do I merge two Arrays and send them as one parameter list? For
> example somehow like this:
> 
> $.get('http://...', arr1.concat(arr2), function() {});
> 
> Thanks for your help!
> 
> Ben
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-convert-an-Array-to-a-Map-Object--tf4870490s27240.html#a13938470
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to