Promise.resolve
以下は同じ意味
code:js
Promise.resolve(1);
code:js
new Promise((resolve, reject) => {
resolve(1);
});
syntax sugarと見れる
Thenable Object
をPromiseに変換する
https://azu.github.io/promises-book/#chapter2-how-to-write-promise