Promises/A+ compliant JavaScript promise implementation
npm install simple-promise
var Promise = require('simple-promise');
new Promise((resolve, reject) => {
resolve('success');
}).then((result) => {
console.log(result);
});
Promises/A+ compliant JavaScript promise implementation
npm install simple-promise
var Promise = require('simple-promise');
new Promise((resolve, reject) => {
resolve('success');
}).then((result) => {
console.log(result);
});