Lukket

extend class Promise

I want to extend the 'Promise' class to follow the following structure:

export default class extends Promise{

constructor(executor){

run(()=>{

super(); //executing the super constructor inside run()

});

return this;

}

then(...args){

run(()=>{

//some adjustments for args

return [login to view URL](...args)

});

}

wait(seconds){

//wait some time

return this

}

}

//just executes fn() and returns its value

function run(fn){return fn();}

Evner: Angular.js, Javascript, node.js, Software Udvikling, Typescript

Se mere: class function, 2008 class function, php class extend join data, typescript extend promise, promise fail, method promise.prototype.then called on incompatible receiver, promise any, wrap in promise, how to return a promise, promise resolve or reject function is not callable, javascript promise, extend class php, call function outsourced class, alfresco authentication extend class, call dll class function delphi, php extend mail class, extend css class, function rollover class, java crop resize software class function, follow following unfollow script

Om arbejdsgiveren:
( 2 bedømmelser ) Florida, United States

Projekt ID: #19304536

2 freelancere byder i gennemsnit $2/time for dette job

szebanred10030

Hi, I’m a senior web developer who are very confident in Laravel, CI,Yii PHP frameworks. Your task is very exciting because my ability is very suitable. I have rich experiences in responsive website design using boot Flere

$2 USD / time
(40 bedømmelser)
6.4
MonroeXia

Hi there, I'm getting in touch with you about your project. I can build Java project and website in a short time period as per your expectations Creativity and efficiency are my features, and I have all the experti Flere

$2 USD / time
(2 bedømmelser)
1.6