# Array of array as param?

**URL:** <https://forum.kirupa.com/t/array-of-array-as-param/243922>\
**Category:** Uncategorized\
**Created:** [November 12, 2007, 5:14pm UTC](https://forum.kirupa.com/t/array-of-array-as-param/243922 "2007-11-12T17:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [November 12, 2007, 5:14pm UTC](https://forum.kirupa.com/t/array-of-array-as-param/243922/1 "2007-11-12T17:14:34Z")

</div>

Hello,  
I’m trying to pass an array of X arrays as parameters to a function such as :  
var someArray = [0, 1, 2];  
var someOtherArray = [A,B,C];  
array = [someArray, someOtherArray,…];  
myMC.someFunction(array);

The problem is that the function doesn’t see where the 1st array stops, it’s like passing a big array such as  
myMC.someFunction(someArray,SomeOtherArray, …) becomes  
myMC.someFunction(0,1,2,A,B,C) instead of myMC.someFunction([0,1,2],[A,B,C]);  
I even tried to make a string such as str += “[array[0]]”+","+"[array[1]] … but it still passes everything as one big array…

So how to pass X arrays to a function??
