I have heard that JavaScript does not support associative arrays. Is it true?
I mean:
assocArray = [
{a: ""},
{b: ""},
{c: ""}
];
How do I get the keys of the above assocArray?
I tried using:
for (each in assocArray) {}
But it gives: 0, 1, 2
assocArray.map(item => Object.keys(item)[0])