How to succinctly and quickly get the item up from the depths?

Instead
arr[1][2][3][nax][ren][4][ch][5][if][estb][2][ch][HP][t][o][p][7][8][9][ten]

Immediately to the value of ten?
And possibly intermediate elements are not always the same.
Know that you can't find, but I think there is an easier way... or not!?)
April 3rd 20 at 17:32
3 answers
April 3rd 20 at 17:34
Solution
Serialize to a string and regex.
April 3rd 20 at 17:36
Solution
No way. Too much dvadtsatiminutka array may occupy a completely indecent time, up to many years.
April 3rd 20 at 17:38
The question is not clear. Why to a value that is known? Or it is necessary to obtain the value of the last element? Or it is necessary for the value to find the element number?

Find more questions by tags JavaScript