Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

return empty new promise

/** 
* The Promise.resolve() method returns a Promise object 
* that is resolved with a given value.
**/

function exampleReturn () {
	return Promise.resolve(value);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #return #empty #promise
ADD COMMENT
Topic
Name
4+3 =