Last active
December 8, 2020 22:27
-
-
Save daveteu/eb2b277db0920cc501a4c5f4cb168b94 to your computer and use it in GitHub Desktop.
createPromise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createPromise = () => { | |
let resolver; | |
return [ new Promise(( resolve, reject ) => { | |
resolver = resolve | |
}), resolver] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment