JS: Promise.resolve
work in progressPromise.resolve(x)-
returns either a new promise resolved with the passed argument, or the argument itself if the argument is a promise produced by this constructor.
Promise.resolve(x)returns either a new promise resolved with the passed argument, or the argument itself if the argument is a promise produced by this constructor.