Hi,
Is there any way in javascript to access a number of arrays if
1) you don’t know how many arrays there are and
2) you don’t know their names
This might sound strange, but I’m sourcing a .js file which contains a number of arrays, but I don’t know beforehand how many and what their names are (this will change from site to site) and in the .js file which sources this file, I want to build a function which can operate on these arrays, and I don’t want to change this function for every site. I want to build a general function which can loop through the arrays from the .js file that has been sourced. I’m thinking maybe I can access these arrays through the DOM, but I can’t figure out how.
TIA
Peter