I'm trying to write some javascript in an environment where square brackets are used for macro replacement, so they can't be used as normal in the script.
If I create an array as an object with new Array()
I can use push() and pop() to access the elements, but for native arrays I can't figure out a way to get to the elements without using brackets. For example, the array returned from:
var allElements = document.getElementsByTagName("*");
Is there a way to assign a native array into an Array object so I can use push() and pop(), or is there another way to get inside?