JS: what's a use-case of Promise.resolve()

前端 未结 0 790
粉色の甜心
粉色の甜心 2021-01-14 09:00

I am looking at https://www.promisejs.org/patterns/ and it mentions it can be used if you need a value in the form of a promise like:

var value = 10;
var prom         


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