Skip to content

Instantly share code, notes, and snippets.

View rahulkumar66's full-sized avatar
🎯
Focusing

Rahul Kumar rahulkumar66

🎯
Focusing
View GitHub Profile
{
"$schema": "https://json.schemastore.org/resume",
"basics": {
"name": "Rahul Kumar",
"label": "Software Engineer at smallcase",
"image": "",
"email": "rahulkumar2048@gmail.com",
"phone": "",
"url": "",
"summary": "\nWHAT I DO ► \nDesign and develop systems especially web environments based on the strategic requirements of the organisation, with knowledge of technologies such as MEAN Stack, JAVA, Android SDK and AWS\n\n\nMy Github ► https://github.com/rahulkumar66\nMy StackOverflow ► https://stackoverflow.com/users/2254878/rahul-kumar",
@rahulkumar66
rahulkumar66 / Custom-Promise.js
Created December 1, 2018 11:07
Basic promise implementation
function CustomPromise(fn) {
this.chain = [];
this.onResolve = this.onResolve.bind(this);
this.onReject = this.onReject.bind(this);
fn(this.onResolve, this.onReject);
}
CustomPromise.prototype.then = function (fn) {
this.chain.push(fn);
return this;