Last active
February 15, 2019 16:59
-
-
Save Qard/bef66f5c887209131001cd02df8e93a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function betterPromise (executor) { | |
let args | |
const promise = new Promise((..._args) => { | |
args = _args | |
}) | |
executor.apply(null, args) | |
return promise | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment