I have array:
aFrmsTbFields.push(["e7" , ["aaa", "bbb", "ccc"]]);
aFrmsTbFields.push(["e8", ["ddd", "eee", "fff"]]);
aFrmsTbFields.push(["e9", ["xxx", "yyy"]]);
I want to get ["xxx", "yyy"]
array by e9
identifier.
How I can do it in JavaScript?
I have tried:
aXXXYYY = aFrmsTbFields["e9"];
But it doesn't work. I already know that arrays in JS are a bit diffrent than arrays in PHP.
I could create object, but im afraid I'm too bad in Javascript to handle them. I'm using array.forEach()
a lot and I need to run something like this later:
aXXXYYY.forEach(...) // loop on ["xxx", "yyy"] array