JS: Creating a Promise class — how does function take an arg?

前端 未结 0 1133
南笙
南笙 2021-01-30 06:44

I am looking at an implementation of a Promise class (at bottom). The constructor takes a function, f.
So if I have a regular function I want to pass in:

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