I have an array in Javascript named "Files". Any element of array can be also be an array of 1D and with no limit in no of nested arrays.
So my situation here is that my array is dynamic and any element can be add at anytime and sometime when i have to access an element when i have given index of that element of Files array in an another array for example var index = [0,1,3,5] then it means that i have to access Files[0][1][3][5] of this array.
My problem that index can also be var index = [0,1] and number of index parameters is not fixed. So how can i write a function in javascript so that function can return value of element of "Files" given that i will provide it that index variable.