Returns a trusted promise. If x is already a trusted promise, it is returned, otherwise returns a new trusted Promise which follows x.
Promise.resolve(x)
Returns a trusted promise. If x is already a trusted promise, it is returned, otherwise returns a new trusted Promise which follows x.
Parameters
-
x
{*}
Returns
{Promise}
promise