I have a response like this:
I want to display the name of each object inside this HTML:
{subjects.map((item, i) => (
Also you can use Lodash to direct convert object to array:
_.toArray({0:{a:4},1:{a:6},2:{a:5}}) [{a:4},{a:6},{a:5}]
In your case:
_.toArray(subjects).map((subject, i) => ( Name: {subject[name]} ))}