I have a bit of a problem with arrays.
I have a string as value, which is unique to an array index, e.g. "daa12d956752gja2":
g_nodeMapping["87686479/welcome.html"] = "daa12d956752gja2";
This string is what I know. What I need to get is the index, so "87686479/welcome.html". The thing is... I have dozens of arrays like this. It basically looks like this:
g_nodeMapping = [];
g_nodeMapping["8374628/test.html"] = "489fa3682975da";
g_nodeMapping["8953628/anothersite.html"] = "gi764295hf46";
g_nodeMapping["267857543/helpplx.html"] = "8653468te87a";
...
I tried the indexOf method, but it doesn‘t seem to find the array index for the value after the equation sign.
I can‘t change the array unfortunately.
Help is much appreciated. Sorry for the formatting, I'm on mobile.
“and„will cause aSyntaxErrorin Javascript. You might consider using'instead.