• function
 

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

  1. x {*}

Returns

{Promise}

promise

Help us improve StealJS by taking our community survey