Monthly Archives: August 2017
Once in a boring evening .. I wrote a basic promise
I wrote a basic promise just to fill the promises better. If anyone wants an exercise, please fill free to add Promize.prototype.all and Promize.prototype.race //just added custombind function, just because I can. Normally I would use js, bind function function custombind(newthis) { return ()=>{ this.apply(newthis, arguments)}; } Function.prototype.custombind = custombind; function Promize(control) { let states […]