How to return something only after some asynchronous function in map function in JavaScript?

前端 未结 0 1943
予麋鹿
予麋鹿 2020-12-06 02:46

I wanted to get username by id in firebase but in map function. So how can i return list item only after database call in map function? Here\'s the code:

cons         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题