I did give this a read but it didn't quite help me.
How do I loop through or enumerate a JavaScript object?
I am trying to get the values of the response
response(data.suggestions);
The below is what I get if I console.log(data.suggestions);
(1) [{…}, {…}]
0:
id: "10"
name: "Iron Man"
1:
id: "93"
name: "Purple Dinosaur Inc."
How can I get the values by the keys.
so something like
response(data.suggestions["name"]);