Created
April 9, 2019 20:41
-
-
Save spirinvladimir/0c5cd700aae9b41c616ae5f75518a7f7 to your computer and use it in GitHub Desktop.
Node.js callback -> Promises , PS: many thanks Redis
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
new Promise((y, n) => redis((e, db) => e ? n(e) : y(db))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment