How to return pushed array response in node js after completing the foreach loop?

后端 未结 0 1675
甜味超标
甜味超标 2021-01-22 19:25

I am running one foreach loop and trying to send the data to the client. but when its coming out from the loop its giving empty array since i have declared variable globally. i

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