Last active
February 24, 2018 15:52
-
-
Save recidive/9f636880b0c5f7595416e7613fda33b1 to your computer and use it in GitHub Desktop.
Functional JS
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 respond = body => ctx.body = body && body | |
const handler = respond('Hello World') |
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 handler = async ctx => { | |
ctx.body = `Hello World` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment