The situation when the API arrives, for example, the list of comments. The vast majority of tutorials make simple - array objects. But I noticed that many real-world applications return the data object, where the key is the aydishnik, and the value of the content itself.
What are the advantages of this method? Is it worth doing also?
ADF. It seems that the source of this trend https://firebase.googleblog.com/2014/04/best-pract...
Googol believes that arrays are evil.