JS: What to a resolve a promise to when making an API call?

前端 未结 0 1419
独厮守ぢ
独厮守ぢ 2020-12-06 05:21

If I want to use a Promise to ensure a function is run first but don\'t care what the return is, what do I resolve it to? Is it best practice to resolve(true)?

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