Created
October 31, 2018 12:05
-
-
Save ufocoder/cf881d7548f8ea54740ec8ebf18838dc 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 passTest () { /* ... */ } | |
| function failTest () { /* ... */ } | |
| const errorCallback = higherOrderNodeCallback(failTest, passTest); | |
| errorCallback(errorObj, null); | |
| const successCallback = higherOrderNodeCallback(passTest, failTest); | |
| successCallback(null, successObj); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment