Skip to content

Instantly share code, notes, and snippets.

@freerangeeggs
Created October 12, 2016 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freerangeeggs/2f8cb2a92c442e68d08e900eee4012db to your computer and use it in GitHub Desktop.
Save freerangeeggs/2f8cb2a92c442e68d08e900eee4012db to your computer and use it in GitHub Desktop.
if('first' in data && 'last' in data) {
context.res = {
body: { greeting: 'Hello ' + data.first + ' ' + data.last + '!'}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment