DEV Community

Discussion on: Use this trick to map over single objects in Javascript

Collapse
 
arikaturika profile image
Arika O

I agree. In an ideal world, this would be true. But I'm talking more about the situation in which we're consuming APIs, not designing them. So the trick is not meant for the API devs but for the consumers who might run into issues because of unpredictable API results.