I am currently facing an issue.
var myArrayVariable1 = new Array();
var myStringVariable1 = 'myArrayVariable1';
var myStringVariable2 = 'myArrayVariable2';
Is there a way to determine if one of the strings matches the variable name? For example, in the scenario above,
myStringVariable1.Value = myArrayVariable1.VariablesName
Here's my dilemma: I have approximately 100 unique objects for each user. I need to update each object every minute.
Each object is named after the database ID; I need JavaScript to find the object, delete it, and recreate it with new values pulled from JSON.
Therefore, I have to find the object (using the string from JSON), and then somehow call that object to delete it... I'm stuck on this part.
In summary, I am seeking something like this:
foreach(object obj in allObjects){
if (obj.ActualName==="something"){
obj.Delete();
}
}
After contemplating and receiving no answer to my query, I am considering using a dictionary (similar to a hashmap) to keep track of all objects